Generates PostgreSQL builtin type OIDs for node-pg-types.
npm install
npm run generateThis will:
- Start all specified Postgres versions in containers
- Run the generator in another container
- Query for builtin type OIDs
- Generate
../lib/builtins.js - Tear down the containers
To query additional PostgreSQL versions, edit the files in this directory:
- Update the version list in
generate.js - Add the new PostgreSQL service to
docker-compose.yml - Add the service dependency to the generator service instructing it to wait for the PostgreSQL service to be ready
Types from multiple PostgreSQL versions are automatically merged.