MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / get_parameters

Method get_parameters

asyncpg/prepared_stmt.py:62–76  ·  view source on GitHub ↗

Return a description of statement parameters types. :return: A tuple of :class:`asyncpg.types.Type`. Example:: stmt = await connection.prepare('SELECT ($1::int, $2::text)') print(stmt.get_parameters()) # Will print: # (Type(oid=23

(self)

Source from the content-addressed store, hash-verified

60
61 @connresource.guarded
62 def get_parameters(self):
63 """Return a description of statement parameters types.
64
65 :return: A tuple of :class:`asyncpg.types.Type`.
66
67 Example::
68
69 stmt = await connection.prepare('SELECT ($1::int, $2::text)')
70 print(stmt.get_parameters())
71
72 # Will print:
73 # (Type(oid=23, name='int4', kind='scalar', schema='pg_catalog'),
74 # Type(oid=25, name='text', kind='scalar', schema='pg_catalog'))
75 """
76 return self._state._get_parameters()
77
78 @connresource.guarded
79 def get_attributes(self):

Callers 3

_mogrifyFunction · 0.80

Calls

no outgoing calls

Tested by 2