MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / test_table_as_composite

Method test_table_as_composite

tests/test_codecs.py:1683–1699  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1681 ''')
1682
1683 async def test_table_as_composite(self):
1684 await self.con.execute('''
1685 CREATE TABLE tab (a text, b int);
1686 INSERT INTO tab VALUES ('1', 1);
1687 ''')
1688
1689 try:
1690 r = await self.con.fetchrow('''
1691 SELECT tab FROM tab
1692 ''')
1693
1694 self.assertEqual(r, (('1', 1),))
1695
1696 finally:
1697 await self.con.execute('''
1698 DROP TABLE tab;
1699 ''')
1700
1701 async def test_relacl_array_type(self):
1702 await self.con.execute(r'''

Callers

nothing calls this directly

Calls 2

executeMethod · 0.45
fetchrowMethod · 0.45

Tested by

no test coverage detected