(client)
| 179 | ] |
| 180 | |
| 181 | const 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 | |
| 188 | module.exports = { |
| 189 | Suite: Suite, |