MCPcopy Index your code
hub / github.com/brianc/node-postgres / setupClient

Function setupClient

packages/pg/test/native/evented-api-tests.js:9–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const test = suite.test.bind(suite)
8
9const setupClient = function () {
10 const client = new Client(helper.config)
11 client.connect()
12 client.query('CREATE TEMP TABLE boom(name varchar(10), age integer)')
13 client.query("INSERT INTO boom(name, age) VALUES('Aaron', 26)")
14 client.query("INSERT INTO boom(name, age) VALUES('Brian', 28)")
15 return client
16}
17
18test('multiple results', function () {
19 test('queued queries', function () {

Callers 1

Calls 2

connectMethod · 0.95
queryMethod · 0.95

Tested by

no test coverage detected