Skip to content

How to configure types only for a particular instance of node-postgres? #1838

Closed
@gajus

Description

@gajus

It appears that the only way to configure type parser is by doing so globally, i.e.

var types = require('pg').types
types.setTypeParser(20, function(val) {
  return parseInt(val)
});

– https://github.com/brianc/node-pg-types

I would like to restrict type parsing to a particular connection.

Is there an API at the moment to do so?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions