Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 330c2c4 commit cb8f1b4Copy full SHA for cb8f1b4
3 files changed
python/ql/test/library-tests/frameworks/aiopg/ConceptsTest.expected
python/ql/test/library-tests/frameworks/aiopg/ConceptsTest.ql
@@ -0,0 +1,2 @@
1
+import python
2
+import experimental.meta.ConceptsTest
python/ql/test/library-tests/frameworks/aiopg/test.py
@@ -0,0 +1,19 @@
+import aiopg
+
3
+# Only a cursor can execute sql.
4
+async def test_cursor():
5
+ # Create connection directly
6
+ conn = await aiopg.connect()
7
+ cur = await conn.cursor()
8
+ await cur.execute("sql") # $ MISSING: getSql="sql"
9
10
+ # Create connection via pool
11
+ async with aiopg.create_pool() as pool:
12
+ # Create Cursor via Connection
13
+ async with pool.acquire() as conn:
14
15
16
17
+ # Create Cursor directly
18
+ async with pool.cursor() as cur:
19
0 commit comments