{"_id":"pg-custom-types","_rev":"10-ed8a9e7e32d6006ef5678c8f7b01aaa8","name":"pg-custom-types","description":"Custom data types for node-postgres","dist-tags":{"latest":"3.0.0"},"versions":{"0.0.1":{"name":"pg-custom-types","version":"0.0.1","description":"Custom data types for node-postgres","homepage":"http://github.com/zhm/pg-custom-types","main":"dist/index.js","scripts":{"test":"npm run lint && node_modules/.bin/mocha ./test/setup.js test/postgis.js","prepublish":"npm run lint && npm run clean && npm run build","lint":"eslint src","build":"babel src --out-dir dist --source-maps","clean":"rm -rf dist"},"author":{"name":"Zac McCormick","email":"zac.mccormick@gmail.com","url":"http://github.com/zhm"},"license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/zhm/pg-custom-types.git"},"peerDependencies":{"pg":"4.x"},"devDependencies":{"babel-cli":"^6.2.0","babel-core":"^6.2.1","babel-preset-es2015":"^6.1.18","chai":"^3.4.1","eslint":"^1.10.1","mocha":"^2.3.3","pg":"^4.4.3"},"dependencies":{"pg-format":"^1.0.1","postgres-array":"^1.0.0"},"keywords":["sql","postgres","postgresql","pg","query","database","types"],"gitHead":"10155ae7774b675db3e902dc9a3a2219079f93d4","bugs":{"url":"https://github.com/zhm/pg-custom-types/issues"},"_id":"pg-custom-types@0.0.1","_shasum":"b5bcf786934e6cb7af2109012b109dab6313f64a","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"zhm","email":"zac.mccormick@gmail.com"},"maintainers":[{"name":"zhm","email":"zac.mccormick@gmail.com"}],"dist":{"shasum":"b5bcf786934e6cb7af2109012b109dab6313f64a","tarball":"https://registry.npmjs.org/pg-custom-types/-/pg-custom-types-0.0.1.tgz","integrity":"sha512-zcwTY7ur2RYAs20pRu0xVIjmjvsy9hx97LFCeiR28bmOYOdD1yeuDUK7DbVR2jhAGMRQjEfOH/NPUGb35vgxjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG9rGyzFZMuq4k196nl8P0z9l+QhJI7XYmj9HwEAmBOsAiEA6gKR8xlrev38slrzQ+k9DGQidNViS7520HTscundBBE="}]}},"1.0.0":{"name":"pg-custom-types","version":"1.0.0","description":"Custom data types for node-postgres","homepage":"http://github.com/zhm/pg-custom-types","main":"dist/index.js","scripts":{"test":"npm run lint && node_modules/.bin/mocha ./test/setup.js test/postgis.js","prepublish":"npm run lint && npm run clean && npm run build","lint":"eslint src","build":"babel src --out-dir dist --source-maps","clean":"rm -rf dist"},"author":{"name":"Zac McCormick","email":"zac.mccormick@gmail.com","url":"http://github.com/zhm"},"license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/zhm/pg-custom-types.git"},"peerDependencies":{"pg":"4.x"},"devDependencies":{"babel-cli":"^6.2.0","babel-core":"^6.2.1","babel-preset-es2015":"^6.1.18","chai":"^3.4.1","eslint":"^1.10.1","mocha":"^2.3.3","pg":"^4.4.3"},"dependencies":{"pg-format":"^1.0.1","postgres-array":"^1.0.0"},"keywords":["sql","postgres","postgresql","pg","query","database","types"],"gitHead":"986f442e53ce19d2529a0f0f25da14cca831279d","bugs":{"url":"https://github.com/zhm/pg-custom-types/issues"},"_id":"pg-custom-types@1.0.0","_shasum":"7b495f093f2fe766468f3b741f4caa9bc31a1f0e","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"zhm","email":"zac.mccormick@gmail.com"},"maintainers":[{"name":"zhm","email":"zac.mccormick@gmail.com"}],"dist":{"shasum":"7b495f093f2fe766468f3b741f4caa9bc31a1f0e","tarball":"https://registry.npmjs.org/pg-custom-types/-/pg-custom-types-1.0.0.tgz","integrity":"sha512-HaSTAGuylLPLG38jLUSLLKXJOhUsi9aUn4Doo2A8eZ1jQijR2P/mfW6ZyB4ACQLyXZPG88lEql3MxTLWOwD2aw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDHCt8laCuGpVB9iu34YTWkkLM/F/VexV+JR8k6CCg26AiEAvF3/7I7iyxt3ENB+AG+EggIBL4B0Ef5iRwu2zlhc4BI="}]}},"1.0.1":{"name":"pg-custom-types","version":"1.0.1","description":"Custom data types for node-postgres","homepage":"http://github.com/zhm/pg-custom-types","main":"dist/index.js","scripts":{"test":"npm run lint && node_modules/.bin/mocha ./test/setup.js test/postgis.js","prepublish":"npm run lint && npm run clean && npm run build","lint":"eslint src","build":"babel src --out-dir dist --source-maps","clean":"rm -rf dist"},"author":{"name":"Zac McCormick","email":"zac.mccormick@gmail.com","url":"http://github.com/zhm"},"license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/zhm/pg-custom-types.git"},"peerDependencies":{"pg":"4.x"},"devDependencies":{"babel-cli":"^6.2.0","babel-core":"^6.2.1","babel-preset-es2015":"^6.1.18","chai":"^3.4.1","eslint":"^1.10.1","mocha":"^2.3.3","pg":"^4.4.3"},"dependencies":{"pg-format":"^1.0.1","postgres-array":"^1.0.0"},"keywords":["sql","postgres","postgresql","pg","query","database","types"],"gitHead":"0c575d3d5e6b39a703a3ab996dc7294adf94f417","bugs":{"url":"https://github.com/zhm/pg-custom-types/issues"},"_id":"pg-custom-types@1.0.1","_shasum":"05a2a8624daa01cd38b4a39e46799e283b13714d","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"zhm","email":"zac.mccormick@gmail.com"},"maintainers":[{"name":"zhm","email":"zac.mccormick@gmail.com"}],"dist":{"shasum":"05a2a8624daa01cd38b4a39e46799e283b13714d","tarball":"https://registry.npmjs.org/pg-custom-types/-/pg-custom-types-1.0.1.tgz","integrity":"sha512-q11vur+fu/jTPhV+/kuxUqiDbgdI4p38P9gy2FCHOn1JZ0jE1qEXDW7w4hCS43XU6aQoaSyyTb9yZyj74rT6Sw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF3zdukcD+GMvP1+3pAGIK50vVfgWEwbu3mQduA6ai8BAiAZ36v5vmGTMIzd24/Z49mKZ1WBYSsJWKHBWa25BWT83g=="}]}},"1.0.2":{"name":"pg-custom-types","version":"1.0.2","description":"Custom data types for node-postgres","homepage":"http://github.com/zhm/pg-custom-types","main":"dist/index.js","scripts":{"test":"npm run lint && node_modules/.bin/mocha ./test/setup.js test/postgis.js","prepublish":"npm run lint && npm run clean && npm run build","lint":"eslint src","build":"babel src --out-dir dist --source-maps","clean":"rm -rf dist"},"author":{"name":"Zac McCormick","email":"zac.mccormick@gmail.com","url":"http://github.com/zhm"},"license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/zhm/pg-custom-types.git"},"peerDependencies":{"pg":"4.x"},"devDependencies":{"babel-cli":"^6.2.0","babel-core":"^6.2.1","babel-preset-es2015":"^6.1.18","chai":"^3.4.1","eslint":"^1.10.1","mocha":"^2.3.3","pg":"^4.4.3"},"dependencies":{"pg-format":"^1.0.1","postgres-array":"^1.0.0"},"keywords":["sql","postgres","postgresql","pg","query","database","types"],"gitHead":"b6775c7d6bafe78f6a0c8d1438c6e903de50bb06","bugs":{"url":"https://github.com/zhm/pg-custom-types/issues"},"_id":"pg-custom-types@1.0.2","_shasum":"874aff47af5e1bfb49bfb93d803b44f89107ee1c","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"zhm","email":"zac.mccormick@gmail.com"},"maintainers":[{"name":"zhm","email":"zac.mccormick@gmail.com"}],"dist":{"shasum":"874aff47af5e1bfb49bfb93d803b44f89107ee1c","tarball":"https://registry.npmjs.org/pg-custom-types/-/pg-custom-types-1.0.2.tgz","integrity":"sha512-J9G04v17OTdzQ0naKCCgVEth3Alx1g/W3J20iyMy34rb88OEwayXjUs4OZxovS52B5IysoCaFh8KsMrzKpyP0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHOK6LhHxjZ4WpEYcTpaggVD1gtzfq6Flj62K7lin7qOAiEArkYOcp5oO8Vqv9JvuwJhM1Lu3sSF7a2rEsl3YOIvu4o="}]}},"2.0.0":{"name":"pg-custom-types","version":"2.0.0","description":"Custom data types for node-postgres","homepage":"http://github.com/zhm/pg-custom-types","main":"dist/index.js","scripts":{"test":"npm run lint && node_modules/.bin/mocha ./test/setup.js test/postgis.js","prepublish":"npm run lint && npm run clean && npm run build","lint":"eslint src","build":"babel src --out-dir dist --source-maps","clean":"rm -rf dist"},"author":{"name":"Zac McCormick","email":"zac.mccormick@gmail.com","url":"http://github.com/zhm"},"license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/zhm/pg-custom-types.git"},"peerDependencies":{"pg":"4.x"},"devDependencies":{"babel-cli":"^6.2.0","babel-core":"^6.2.1","babel-preset-es2015":"^6.1.18","chai":"^3.4.1","eslint":"^1.10.1","mocha":"^2.3.3","pg":"^4.4.3"},"dependencies":{"pg-format":"^1.0.1","postgres-array":"^1.0.0"},"keywords":["sql","postgres","postgresql","pg","query","database","types"],"gitHead":"62398fd5bbb6faccf23c8740dbf73b0f6a581a7a","bugs":{"url":"https://github.com/zhm/pg-custom-types/issues"},"_id":"pg-custom-types@2.0.0","_shasum":"6831aed5bb5406a107df2cc1357cdcb107a03340","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"zhm","email":"zac.mccormick@gmail.com"},"dist":{"shasum":"6831aed5bb5406a107df2cc1357cdcb107a03340","tarball":"https://registry.npmjs.org/pg-custom-types/-/pg-custom-types-2.0.0.tgz","integrity":"sha512-hK9s/KU97Py7zThjMPQIdHLdF47sx6ejRy+kbiu3rlP0dCz4PKMz8DuBnRkGpiSYzHurrqViQA1EHKsfRYqdmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCB33nEsFe0fJ1j1mKpEfiXSDkoCYKyXA1LrOAhZgPa7AIgfhHUVN77xhP9hgCQydazkWmQQLU7dUZzJQMFz7uj6II="}]},"maintainers":[{"name":"zhm","email":"zac.mccormick@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pg-custom-types-2.0.0.tgz_1467323824545_0.8273384557105601"}},"2.1.0":{"name":"pg-custom-types","version":"2.1.0","description":"Custom data types for node-postgres","homepage":"http://github.com/zhm/pg-custom-types","main":"dist/index.js","scripts":{"test":"npm run lint && node_modules/.bin/mocha ./test/setup.js test/postgis.js","prepublish":"npm run lint && npm run clean && npm run build","lint":"eslint src","build":"babel src --out-dir dist --source-maps","clean":"rm -rf dist"},"author":{"name":"Zac McCormick","email":"zac.mccormick@gmail.com","url":"http://github.com/zhm"},"license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/zhm/pg-custom-types.git"},"peerDependencies":{"pg":"*"},"devDependencies":{"babel-cli":"^6.2.0","babel-core":"^6.2.1","babel-preset-es2015":"^6.1.18","chai":"^3.4.1","eslint":"^1.10.1","mocha":"^2.3.3","pg":"^4.4.3"},"dependencies":{"pg-format":"^1.0.1","postgres-array":"^1.0.0"},"keywords":["sql","postgres","postgresql","pg","query","database","types"],"gitHead":"94b2b84d30e9abc2111b1274c6248e92d70be241","bugs":{"url":"https://github.com/zhm/pg-custom-types/issues"},"_id":"pg-custom-types@2.1.0","_shasum":"31f9747b06b069df994572cf154e6523f11cc735","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"zhm","email":"zac.mccormick@gmail.com"},"dist":{"shasum":"31f9747b06b069df994572cf154e6523f11cc735","tarball":"https://registry.npmjs.org/pg-custom-types/-/pg-custom-types-2.1.0.tgz","integrity":"sha512-jk/wDe9xTWKdZj9qZh8xSOtB2qYhN++7lRsTAg4q45eXkiv1vVLh8VzqicMY0bHwiVJmnZqCt39lPTPtqEmj7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxJrIvg5uTWaysU58AOM4rNbIiHMMXU3gEHUD8q3qU7AIgNkNFO/uoxGLKBPNWmhCKFkmadVwmVmucOIrKTWi+j1w="}]},"maintainers":[{"name":"zhm","email":"zac.mccormick@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pg-custom-types-2.1.0.tgz_1467841220124_0.8862143456935883"}},"2.2.0":{"name":"pg-custom-types","version":"2.2.0","description":"Custom data types for node-postgres","homepage":"http://github.com/zhm/pg-custom-types","main":"dist/index.js","scripts":{"test":"npm run lint && node_modules/.bin/mocha ./test/setup.js test/postgis.js","prepublish":"npm run lint && npm run clean && npm run build","lint":"eslint src","build":"babel src --out-dir dist --source-maps","clean":"rm -rf dist"},"author":{"name":"Zac McCormick","email":"zac.mccormick@gmail.com","url":"http://github.com/zhm"},"license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/zhm/pg-custom-types.git"},"peerDependencies":{"pg":"*"},"devDependencies":{"babel-cli":"^6.10.1","babel-core":"^6.10.4","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","eslint":"^3.0.1","mocha":"^2.5.3","pg":"^6.0.1"},"dependencies":{"pg-format":"^1.0.2","postgres-array":"^1.0.0"},"keywords":["sql","postgres","postgresql","pg","query","database","types"],"gitHead":"46cb8820cef61c2b2952e5725ff85930e5c382cc","bugs":{"url":"https://github.com/zhm/pg-custom-types/issues"},"_id":"pg-custom-types@2.2.0","_shasum":"c8a8484d4310c30fd01c7de4ea5bd84e2c28d39c","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"zhm","email":"zac.mccormick@gmail.com"},"dist":{"shasum":"c8a8484d4310c30fd01c7de4ea5bd84e2c28d39c","tarball":"https://registry.npmjs.org/pg-custom-types/-/pg-custom-types-2.2.0.tgz","integrity":"sha512-eaMHLDdWQbSJmtUTMwaftPluv9c17rOVl4cEbs8GdXvPAVluQFpRcz9vOWbEAsp5r4m7WC6t3qSHh2fzb3/Okg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAK7J2mS5CD/9LWQS+gBPqBJrlhcdhPkZvN7IF8TCSOOAiEA1S/9ZR+TPUogScuPHJLPqnljk+mfmlJTH7LplDXgZtM="}]},"maintainers":[{"name":"zhm","email":"zac.mccormick@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pg-custom-types-2.2.0.tgz_1467841338540_0.09315219358541071"}},"3.0.0":{"name":"pg-custom-types","version":"3.0.0","description":"Custom data types for node-postgres","homepage":"http://github.com/zhm/pg-custom-types","main":"dist/index.js","scripts":{"test":"npm run lint && node_modules/.bin/mocha ./test/setup.js test/postgis.js","prepublish":"npm run lint && npm run clean && npm run build","lint":"eslint src","build":"babel src --out-dir dist --source-maps","clean":"rm -rf dist"},"author":{"name":"Zac McCormick","email":"zac.mccormick@gmail.com","url":"http://github.com/zhm"},"license":"BSD-3-Clause","repository":{"type":"git","url":"git://github.com/zhm/pg-custom-types.git"},"peerDependencies":{"pg":"*"},"devDependencies":{"babel-cli":"^6.10.1","babel-core":"^6.10.4","babel-preset-es2015":"^6.9.0","chai":"^3.5.0","eslint":"^3.0.1","mocha":"^2.5.3","pg":"^6.0.1"},"dependencies":{"pg-format":"^1.0.2","postgres-array":"^1.0.0"},"keywords":["sql","postgres","postgresql","pg","query","database","types"],"gitHead":"bc369368577b492dd864c88588449e0fa0ba7111","bugs":{"url":"https://github.com/zhm/pg-custom-types/issues"},"_id":"pg-custom-types@3.0.0","_shasum":"f72cc6fa8cd97fc98e126e4ec5abeb62b85f539a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"zhm","email":"zac.mccormick@gmail.com"},"dist":{"shasum":"f72cc6fa8cd97fc98e126e4ec5abeb62b85f539a","tarball":"https://registry.npmjs.org/pg-custom-types/-/pg-custom-types-3.0.0.tgz","integrity":"sha512-1aOqSM6rwMYPM6oyhA81LGH2KUz5J3TonYmc1XAJcqdMdJvVfmf6H85xPQkd94Dkgg2Fu3YR2TdnpoGxlUGKyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcd8cU3FT+eJjsvqoviYPb11iNq8XELrYxP4vklxLf4wIgYyxmXmQsX+wEPcE/SKc+oPfw+ldyUvPGwmsuJUZHFxE="}]},"maintainers":[{"name":"zhm","email":"zac.mccormick@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pg-custom-types-3.0.0.tgz_1481646311092_0.851913093123585"}}},"readme":"# pg-custom-types [![Build Status](https://travis-ci.org/zhm/pg-custom-types.svg?branch=master)](https://travis-ci.org/zhm/pg-custom-types)\n\nUse custom data types with [node-postgres](https://github.com/brianc/node-postgres).\n\n## Installation\n\n```sh\nnpm install pg-custom-types\n```\n\n### Documentation\n\n### `types(pg, connection, name, types, callback)`\n\nFetches the OIDs for the given types.\n\n### Parameters\n\n| parameter       | type               | description                                                                        |\n| --------------- | ------------------ | ---------------------------------------------------------------------------------- |\n| `fetcher`       | Object             | The query function of the form `function (sql, callback)`                          |\n| `key`           | String             | A name for the given set of types, used to cache the results. It can be anything.  |\n| `types`         | Array              | The array of data type names to fetch                                              |\n| `callback`      | Function           | The callback to call after the types are fetched                                   |\n\nCallback is called with an object containing a lookup table.\n\n```\n{ 21842552: 'geometry',\n  21842762: 'geography' }\n```\n\n## Example\n\n```js\nvar types = require('pg-custom-types');\n\ntypes(types.fetcher(pg, connection), 'postgis', ['geometry', 'geography'], (err, oids) {\n  if (err) {\n    throw err;\n  }\n\n  console.log(oids.geometry);\n  console.log(oids.geography);\n\n  pg.setTypeParser(oids.geometry, function (value) {\n    // parse geometry type\n  });\n});\n```\n","maintainers":[{"name":"zhm","email":"zac.mccormick@gmail.com"}],"time":{"modified":"2022-06-23T19:37:43.303Z","created":"2015-11-24T15:44:05.496Z","0.0.1":"2015-11-24T15:44:05.496Z","1.0.0":"2015-11-24T15:59:58.023Z","1.0.1":"2015-11-24T16:12:13.071Z","1.0.2":"2015-11-24T20:56:36.393Z","2.0.0":"2016-06-30T21:57:06.362Z","2.1.0":"2016-07-06T21:40:21.310Z","2.2.0":"2016-07-06T21:42:20.923Z","3.0.0":"2016-12-13T16:25:13.163Z"},"homepage":"http://github.com/zhm/pg-custom-types","keywords":["sql","postgres","postgresql","pg","query","database","types"],"repository":{"type":"git","url":"git://github.com/zhm/pg-custom-types.git"},"author":{"name":"Zac McCormick","email":"zac.mccormick@gmail.com","url":"http://github.com/zhm"},"bugs":{"url":"https://github.com/zhm/pg-custom-types/issues"},"license":"BSD-3-Clause","readmeFilename":"README.md"}