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

Method execute

pgcli/pgexecute.py:88–96  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

86 # return query % tuple(args)
87 #
88 def execute(self, *args, **kwargs):
89 try:
90 super().execute(*args, **kwargs)
91 self.protocol_error = False
92 self.protocol_message = ""
93 except psycopg.errors.ProtocolViolation as ex:
94 self.protocol_error = True
95 self.protocol_message = str(ex)
96 _logger.debug("%s: %s" % (ex.__class__.__name__, ex))
97
98
99class PGExecute:

Callers 15

_select_oneMethod · 0.45
runMethod · 0.45
execute_normal_sqlMethod · 0.45
search_pathMethod · 0.45
view_definitionMethod · 0.45
function_definitionMethod · 0.45
schemataMethod · 0.45
_relationsMethod · 0.45
_columnsMethod · 0.45
databasesMethod · 0.45
full_databasesMethod · 0.45
is_protocol_errorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected