MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / get_databases

Method get_databases

database/PostgreSQL.py:136–142  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134 cur.close()
135
136 def get_databases(self) -> Result:
137 result = Result(headers=['name'])
138 databases = self._select(self._queries["databases"], showColumns=True)
139 for db in databases:
140 result.rows.append([db["datname"]])
141
142 return result
143
144
145 def execute_query(self, query:str):

Callers

nothing calls this directly

Calls 3

_selectMethod · 0.95
ResultClass · 0.90
appendMethod · 0.45

Tested by

no test coverage detected