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

Function prepared

packages/pg-native/bench/leaks.js:19–24  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

17 }
18
19 const prepared = function (cb) {
20 client.prepare('test', 'SELECT $1::text as name', 1, function (err) {
21 if (err) return cb(err)
22 client.execute('test', ['Brian'], cb)
23 })
24 }
25
26 const sync = function (cb) {
27 client.querySync('SELECT NOW()')

Callers

nothing calls this directly

Calls 3

cbFunction · 0.85
prepareMethod · 0.80
executeMethod · 0.80

Tested by

no test coverage detected