MCPcopy
hub / github.com/dbcli/pgcli / is_protocol_error

Method is_protocol_error

pgcli/pgexecute.py:650–655  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

648 return cur.fetchall(), headers, cur.statusmessage
649
650 def is_protocol_error(self):
651 query = "SELECT 1"
652 with self.conn.cursor() as cur:
653 _logger.debug("Simple Query. sql: %r", query)
654 cur.execute(query)
655 return bool(cur.protocol_error)
656
657 def get_socket_directory(self):
658 with self.conn.cursor() as cur:

Callers 1

is_virtual_databaseMethod · 0.95

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected