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

Function run

packages/pg-native/test/prepare.js:6–21  ·  view source on GitHub ↗
(n, cb)

Source from the content-addressed store, hash-verified

4
5describe('async prepare', function () {
6 const run = function (n, cb) {
7 const client = new Client()
8 client.connectSync()
9
10 const exec = function (x, done) {
11 client.prepare('get_now' + x, 'SELECT NOW()', 0, done)
12 }
13
14 async.timesSeries(
15 10,
16 exec,
17 ok(cb, function () {
18 client.end(cb)
19 })
20 )
21 }
22
23 const t = function (n) {
24 it('works for ' + n + ' clients', function (done) {

Callers

nothing calls this directly

Calls 1

endMethod · 0.95

Tested by

no test coverage detected