Skip to content

Commit 5b06d1b

Browse files
committed
Add test for creating a stream before a query is queued
1 parent a7010b0 commit 5b06d1b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var common = require('../../common');
2+
var path = require('path')
3+
var createQuery = require(path.join(common.lib, 'Connection')).createQuery
4+
5+
var query = createQuery('SELECT * FROM some_table')
6+
var stream = query.stream()
7+
8+
// put the stream into flowing mode
9+
stream.on('data', function () { })

0 commit comments

Comments
 (0)