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
This field allows to select a parser and type for each postgres type passed and returned.
pgTyped will then automatically handle parsing this type at both runtime and compile-time.
The text was updated successfully, but these errors were encountered:
This mapping can be achieved in node-postgres with the pg.types.setTypeParser mechanism. If I understand correctly, the BigInt mapping might become default for node-postgres in the future: brianc/node-pg-types#78.
pgtyped implicitly relies on the type mappings of whichever IDatabaseConnection is used. Do you know if it's common to use backends other than node-postgres to provide IDatabaseConnection?
I think two big options are:
Support configuration over which types are emitted, but don't do runtime conversion. Add documentation for configuring backends to match.
Config should have a new
typeMap
field:This field allows to select a parser and type for each postgres type passed and returned.
pgTyped will then automatically handle parsing this type at both runtime and compile-time.
The text was updated successfully, but these errors were encountered: