MCPcopy
hub / github.com/psycopg/psycopg / test_copy_query

Function test_copy_query

tests/test_copy_async.py:716–721  ·  view source on GitHub ↗
(aconn)

Source from the content-addressed store, hash-verified

714
715
716async def test_copy_query(aconn):
717 cur = aconn.cursor()
718 async with cur.copy("copy (select 1) to stdout") as copy:
719 assert cur._query.query == b"copy (select 1) to stdout"
720 assert not cur._query.params
721 await alist(copy)
722
723
724async def test_cant_reenter(aconn):

Callers

nothing calls this directly

Calls 3

alistFunction · 0.85
cursorMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected