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

Method get_socket_directory

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

Source from the content-addressed store, hash-verified

655 return bool(cur.protocol_error)
656
657 def get_socket_directory(self):
658 with self.conn.cursor() as cur:
659 _logger.debug("Socket directory Query. sql: %r", self.socket_directory_query)
660 cur.execute(self.socket_directory_query)
661 result = cur.fetchone()
662 return result[0] if result else ""
663
664 def foreignkeys(self):
665 """Yields ForeignKey named tuples"""

Callers 1

connectMethod · 0.95

Calls 2

fetchoneMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected