How to use the pg-types.arrayParser.create function in pg-types

To help you get started, we’ve selected a few pg-types examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gajus / slonik / src / routines / createTypeOverrides.js View on Github external
typeOverrides.setTypeParser(postgresType.typarray, (value) => {
        return arrayParser
          .create(
            value,
            typeParser.parse,
          )
          .parse();
      });
    }

pg-types

Query result type converters for node-postgres

MIT
Latest version published 3 months ago

Package Health Score

86 / 100
Full package analysis