Force explicit conversion of rows fetched from SQL DB

Everything is a scalar value now, and while this does involve more
boilerplate it will also catch type conversion issues like
"1" + 0 === "10" in the future.
This commit is contained in:
Tau
2019-10-10 22:26:23 -04:00
parent 30d42bd832
commit f9970fa81c
18 changed files with 135 additions and 115 deletions

View File

@@ -3,7 +3,7 @@ import * as sql from "sql-bricks-postgres";
export type Id<T> = bigint & { __id: T };
export interface Row {
[key: string]: any;
[key: string]: string;
}
export interface Transaction {