mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Attempt to call a `toPostgres` method on objects passed as query values before converting them to JSON. This allows custom types to convert themselves to the appropriate PostgreSQL literal. This strategy is fully backwards-compatible and uses the same pattern as the `toJSON` override.