MCPcopy
hub / github.com/brianc/node-postgres / createPersonTable

Function createPersonTable

packages/pg/test/test-helper.js:181–186  ·  view source on GitHub ↗
(client)

Source from the content-addressed store, hash-verified

179]
180
181const createPersonTable = async (client) => {
182 await client.query('CREATE TEMP TABLE person (id serial, name varchar(10), age integer)')
183 await client.query(
184 'INSERT INTO person (name, age) VALUES' + names.map((name, i) => ` ('${name}', ${(i + 1) * 10})`).join(',')
185 )
186}
187
188module.exports = {
189 Suite: Suite,

Callers

nothing calls this directly

Calls 2

queryMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected