@@ -32,21 +32,21 @@ private module MySql {
32
32
33
33
private DataFlow:: CallNode createPool ( ) { result = mysql ( ) .getAMemberCall ( "createPool" ) }
34
34
35
- /** Gets a call to `mysql.createPool` . */
35
+ /** Gets a reference to a MySQL pool . */
36
36
private DataFlow:: SourceNode pool ( DataFlow:: TypeTracker t ) {
37
37
t .start ( ) and
38
38
result = createPool ( )
39
39
or
40
40
exists ( DataFlow:: TypeTracker t2 | result = pool ( t2 ) .track ( t2 , t ) )
41
41
}
42
42
43
- /** Gets a call to `mysql.createPool` . */
43
+ /** Gets a reference to a MySQL pool . */
44
44
private DataFlow:: SourceNode pool ( ) { result = pool ( DataFlow:: TypeTracker:: end ( ) ) }
45
45
46
46
/** Gets a call to `mysql.createConnection`. */
47
47
DataFlow:: CallNode createConnection ( ) { result = mysql ( ) .getAMemberCall ( "createConnection" ) }
48
48
49
- /** Gets a data flow node that contains a freshly created MySQL connection instance. */
49
+ /** Gets a reference to a MySQL connection instance. */
50
50
private DataFlow:: SourceNode connection ( DataFlow:: TypeTracker t ) {
51
51
t .start ( ) and
52
52
(
@@ -58,7 +58,7 @@ private module MySql {
58
58
exists ( DataFlow:: TypeTracker t2 | result = connection ( t2 ) .track ( t2 , t ) )
59
59
}
60
60
61
- /** Gets a data flow node that contains a freshly created MySQL connection instance. */
61
+ /** Gets a reference to a MySQL connection instance. */
62
62
DataFlow:: SourceNode connection ( ) { result = connection ( DataFlow:: TypeTracker:: end ( ) ) }
63
63
64
64
/** A call to the MySql `query` method. */
@@ -318,15 +318,15 @@ private module Sequelize {
318
318
/** Gets an import of the `sequelize` module. */
319
319
DataFlow:: SourceNode sequelize ( ) { result = DataFlow:: moduleImport ( "sequelize" ) }
320
320
321
- /** Gets an expression that creates an instance of the `Sequelize` class. */
321
+ /** Gets a node referring to an instance of the `Sequelize` class. */
322
322
private DataFlow:: SourceNode newSequelize ( DataFlow:: TypeTracker t ) {
323
323
t .start ( ) and
324
324
result = sequelize ( ) .getAnInstantiation ( )
325
325
or
326
326
exists ( DataFlow:: TypeTracker t2 | result = newSequelize ( t2 ) .track ( t2 , t ) )
327
327
}
328
328
329
- /** Gets an expression that creates an instance of the `Sequelize` class. */
329
+ /** Gets a node referring to an instance of the `Sequelize` class. */
330
330
DataFlow:: SourceNode newSequelize ( ) { result = newSequelize ( DataFlow:: TypeTracker:: end ( ) ) }
331
331
332
332
/** A call to `Sequelize.query`. */
0 commit comments