fix(db): supportBigNumbers

BIGINT columns will lose precision at a certain length.
This connection flag will typecast to a string in those situations.

Resolves #121.
This commit is contained in:
Linden committed 2022-06-18 14:14:03 +10:00
1 parent bccd6a1035
commit a76ce68e9c
1 file changed
+1
+1
View File
@@ -55,6 +55,7 @@ setTimeout(() => {
pool = createPool({
connectTimeout: 60000,
trace: false,
supportBigNumbers: true,
...connectionOptions,
typeCast,
});