Skip to content

Commit 5131c4d

Browse files
authored
Study note
about query's promise
1 parent 83a946f commit 5131c4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/query.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ var util = require('util');
1111

1212
var Result = require('./result');
1313
var utils = require('./utils');
14-
14+
//Ze : Although Query itself doesn't return a promise. But it implements promise functions below.
15+
// So we can use fromPromise on query.
1516
var Query = function(config, values, callback) {
1617
// use of "new" optional
1718
if(!(this instanceof Query)) { return new Query(config, values, callback); }

0 commit comments

Comments
 (0)