@@ -17,14 +17,15 @@ private module Asyncpg {
17
17
row =
18
18
[
19
19
// a `ConnectionPool` that is created when the result of `asyncpg.create_pool()` is awaited.
20
- "asyncpg; ConnectionPool;asyncpg; ;Member[create_pool].ReturnValue.Awaited" ,
20
+ "asyncpg. ConnectionPool;asyncpg;Member[create_pool].ReturnValue.Awaited" ,
21
21
// a `Connection` that is created when
22
22
// * - the result of `asyncpg.connect()` is awaited.
23
23
// * - the result of calling `acquire` on a `ConnectionPool` is awaited.
24
- "asyncpg; Connection;asyncpg; ;Member[connect].ReturnValue.Awaited" ,
25
- "asyncpg; Connection;asyncpg; ConnectionPool;Member[acquire].ReturnValue.Awaited" ,
24
+ "asyncpg. Connection;asyncpg;Member[connect].ReturnValue.Awaited" ,
25
+ "asyncpg. Connection;asyncpg. ConnectionPool;Member[acquire].ReturnValue.Awaited" ,
26
26
// Creating an internal `~Connection` type that contains both `Connection` and `ConnectionPool`.
27
- "asyncpg;~Connection;asyncpg;Connection;" , "asyncpg;~Connection;asyncpg;ConnectionPool;"
27
+ "asyncpg.~Connection;asyncpg.Connection;" , //
28
+ "asyncpg.~Connection;asyncpg.ConnectionPool;"
28
29
]
29
30
}
30
31
}
@@ -35,13 +36,13 @@ private module Asyncpg {
35
36
row =
36
37
[
37
38
// `Connection`s and `ConnectionPool`s provide some methods that execute SQL.
38
- "asyncpg; ~Connection;Member[copy_from_query,execute,fetch,fetchrow,fetchval].Argument[0,query:];sql-injection" ,
39
- "asyncpg; ~Connection;Member[executemany].Argument[0,command:];sql-injection" ,
39
+ "asyncpg. ~Connection;Member[copy_from_query,execute,fetch,fetchrow,fetchval].Argument[0,query:];sql-injection" ,
40
+ "asyncpg. ~Connection;Member[executemany].Argument[0,command:];sql-injection" ,
40
41
// A model of `Connection` and `ConnectionPool`, which provide some methods that access the file system.
41
- "asyncpg; ~Connection;Member[copy_from_query,copy_from_table].Argument[output:];path-injection" ,
42
- "asyncpg; ~Connection;Member[copy_to_table].Argument[source:];path-injection" ,
42
+ "asyncpg. ~Connection;Member[copy_from_query,copy_from_table].Argument[output:];path-injection" ,
43
+ "asyncpg. ~Connection;Member[copy_to_table].Argument[source:];path-injection" ,
43
44
// the `PreparedStatement` class in `asyncpg`.
44
- "asyncpg; Connection;Member[prepare].Argument[0,query:];sql-injection" ,
45
+ "asyncpg. Connection;Member[prepare].Argument[0,query:];sql-injection" ,
45
46
]
46
47
}
47
48
}
@@ -58,7 +59,7 @@ private module Asyncpg {
58
59
module Cursor {
59
60
class CursorConstruction extends SqlConstruction:: Range , API:: CallNode {
60
61
CursorConstruction ( ) {
61
- this = ModelOutput:: getATypeNode ( "asyncpg" , " Connection") .getMember ( "cursor" ) .getACall ( )
62
+ this = ModelOutput:: getATypeNode ( "asyncpg. Connection" ) .getMember ( "cursor" ) .getACall ( )
62
63
}
63
64
64
65
override DataFlow:: Node getSql ( ) { result = this .getParameter ( 0 , "query" ) .asSink ( ) }
@@ -76,7 +77,7 @@ private module Asyncpg {
76
77
or
77
78
exists ( API:: CallNode prepareCall |
78
79
prepareCall =
79
- ModelOutput:: getATypeNode ( "asyncpg" , " Connection") .getMember ( "prepare" ) .getACall ( )
80
+ ModelOutput:: getATypeNode ( "asyncpg. Connection" ) .getMember ( "prepare" ) .getACall ( )
80
81
|
81
82
sql = prepareCall .getParameter ( 0 , "query" ) .asSink ( ) and
82
83
this =
0 commit comments