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)
| 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): |
no outgoing calls