MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / execute

Method execute

web/pgadmin/utils/driver/psycopg3/cursor.py:188–202  ·  view source on GitHub ↗

Execute function ``prepare`` and ``binary`` are forwarded so this cursor stays substitutable for ``psycopg.Cursor``. ``psycopg.Connection.execute`` passes ``prepare=...`` through to its underlying cursor; without accepting it here that high-level call raises

(self, query, params=None, *, prepare=None, binary=None)

Source from the content-addressed store, hash-verified

186 return self._odt_desc
187
188 def execute(self, query, params=None, *, prepare=None, binary=None):
189 """
190 Execute function
191
192 ``prepare`` and ``binary`` are forwarded so this cursor stays
193 substitutable for ``psycopg.Cursor``. ``psycopg.Connection.execute``
194 passes ``prepare=...`` through to its underlying cursor; without
195 accepting it here that high-level call raises ``TypeError``.
196 """
197 self._odt_desc = None
198 if params is not None and len(params) == 0:
199 params = None
200
201 return _cursor.execute(self, query, params,
202 prepare=prepare, binary=binary)
203
204 def fetchone(self):
205 """

Callers 5

execute_asyncMethod · 0.45
pingMethod · 0.45
cancel_transactionMethod · 0.45
_executeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected