node-postgres/packages/pg/test/integration/client/connection-parameter-tests.js
2020-07-08 11:24:27 -05:00

14 lines
390 B
JavaScript

const helper = require('../test-helper')
const suite = new helper.Suite()
const { Client } = helper.pg
suite.test('it sends options', async () => {
const client = new Client({
options: '--default_transaction_isolation=serializable',
})
await client.connect()
const { rows } = await client.query('SHOW default_transaction_isolation')
console.log(rows)
await client.end()
})