How to use postgres-array - 10 common examples

To help you get started, we’ve selected a few postgres-array 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 brianc / node-pg-types / lib / textParsers.js View on Github external
var parseIntervalArray = function (value) {
  if (!value) { return null }
  return array.parse(value, parseInterval)
}
github apsavin / pgrights / src / models / DbTable.js View on Github external
policyname: name,
        permissive,
        cmd: command,
        qual: qualifier,
        with_check: check,
        roles,
        schemaname: schemaName,
        tablename: tableName,
      } = policyData;
      const policy = new DbPolicy({
        name,
        permissive: permissive === 'PERMISSIVE',
        command,
        qualifier,
        check,
        roles: pgArray.parse(roles),
        schemaName,
        tableName,
        db: this.db,
      });

      this.policies.add(policy);
    });
  });
github brianc / node-pg-types / lib / textParsers.js View on Github external
var parsePointArray = function (value) {
  if (!value) { return null }
  return array.parse(value, parsePoint)
}
github brianc / node-pg-types / lib / textParsers.js View on Github external
function parseBigIntegerArray (value) {
  if (!value) return null
  return array.parse(value, function (entry) {
    return parseBigInteger(entry).trim()
  })
}
github brianc / node-pg-types / lib / textParsers.js View on Github external
var parseByteAArray = function (value) {
  if (!value) { return null }
  return array.parse(value, parseByteA)
}
github brianc / node-pg-types / lib / textParsers.js View on Github external
var parseDateArray = function (value) {
  if (!value) { return null }
  return array.parse(value, parseDate)
}
github totaljs / eshop / node_modules / pg / node_modules / pg-types / lib / textParsers.js View on Github external
function parseBigIntegerArray (value) {
  if (!value) return null
  return array.parse(value, allowNull(function (entry) {
    return parseBigInteger(entry).trim()
  }))
}
github totaljs / eshop / node_modules / pg / node_modules / pg-types / lib / textParsers.js View on Github external
function parseBoolArray (value) {
  if (!value) return null
  return array.parse(value, parseBool)
}

postgres-array

Parse postgres array columns

MIT
Latest version published 2 years ago

Package Health Score

65 / 100
Full package analysis

Popular postgres-array functions