mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
14 lines
390 B
JavaScript
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()
|
|
})
|