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

Method databases

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

Source from the content-addressed store, hash-verified

635 yield from self._columns(kinds=["v", "m"])
636
637 def databases(self):
638 with self.conn.cursor() as cur:
639 _logger.debug("Databases Query. sql: %r", self.databases_query)
640 cur.execute(self.databases_query)
641 return [x[0] for x in cur.fetchall()]
642
643 def full_databases(self):
644 with self.conn.cursor() as cur:

Callers 2

refresh_databasesFunction · 0.80
test_database_listFunction · 0.80

Calls 2

fetchallMethod · 0.80
executeMethod · 0.45

Tested by 1

test_database_listFunction · 0.64