(self, timeout)
| 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() |
no test coverage detected