123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- 'use strict'
- module.exports = {
-
- host: 'localhost',
-
- user: process.platform === 'win32' ? process.env.USERNAME : process.env.USER,
-
- database: undefined,
-
- password: null,
-
-
-
- connectionString: undefined,
-
- port: 5432,
-
-
- rows: 0,
-
- binary: false,
-
-
-
- max: 10,
-
-
- idleTimeoutMillis: 30000,
- client_encoding: '',
- ssl: false,
- application_name: undefined,
- fallback_application_name: undefined,
- options: undefined,
- parseInputDatesAsUTC: false,
-
-
- statement_timeout: false,
-
-
- lock_timeout: false,
-
-
- idle_in_transaction_session_timeout: false,
-
- query_timeout: false,
- connect_timeout: 0,
- keepalives: 1,
- keepalives_idle: 0,
- }
- var pgTypes = require('pg-types')
- var parseBigInteger = pgTypes.getTypeParser(20, 'text')
- var parseBigIntegerArray = pgTypes.getTypeParser(1016, 'text')
- module.exports.__defineSetter__('parseInt8', function (val) {
- pgTypes.setTypeParser(20, 'text', val ? pgTypes.getTypeParser(23, 'text') : parseBigInteger)
- pgTypes.setTypeParser(1016, 'text', val ? pgTypes.getTypeParser(1007, 'text') : parseBigIntegerArray)
- })
|