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

Method _bind

asyncpg/cursor.py:133–147  ·  view source on GitHub ↗
(self, timeout)

Source from the content-addressed store, hash-verified

131 return buffer
132
133 async def _bind(self, timeout):
134 self._check_ready()
135
136 if self._portal_name:
137 raise exceptions.InterfaceError(
138 'cursor already has an open portal')
139
140 con = self._connection
141 protocol = con._protocol
142
143 self._portal_name = con._get_unique_id('portal')
144 buffer = await protocol.bind(self._state, self._args,
145 self._portal_name,
146 timeout)
147 return buffer
148
149 async def _exec(self, n, timeout):
150 self._check_ready()

Callers 1

_initMethod · 0.80

Calls 2

_check_readyMethod · 0.95
_get_unique_idMethod · 0.80

Tested by

no test coverage detected