You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bigint and bigserial are returned as strings by node-postgres, because all bigints don't fit in the JavaScript number type (53 bits of precision). See brianc/node-postgres#353. Sqltyper's output has to match the node-postgres runtime semantics.
It seems that sqltyper version
0.2.3
(I'm using PostgreSQL version12
and pg8.0.3
) generates unexpected string types forbigint
andbigserial
fields.Using table definition
and query
one gets following
.ts
code with sqltyper (removed comments from top of the file):The text was updated successfully, but these errors were encountered: