We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a10a151 commit 75d1d7dCopy full SHA for 75d1d7d
1 file changed
packages/pg-query-stream/test/pool.ts
@@ -7,11 +7,10 @@ describe('pool', function () {
7
const pool = new Pool()
8
const query = new QueryStream('SELECT * FROM generate_series(0, 10) num', [])
9
const q = pool.query(query)
10
- console.log(q) // Promise { <pending>, ...
11
query.on('data', (row) => {
12
// just consume the whole stream
13
})
14
- await q //!
+ await q
15
query.on('end', () => {
16
pool.end()
17
0 commit comments