MCPcopy Index your code
hub / github.com/dbcli/pgcli / schemata

Method schemata

pgcli/pgexecute.py:536–542  ·  view source on GitHub ↗

Returns a list of schema names in the database

(self)

Source from the content-addressed store, hash-verified

534 raise RuntimeError(f"Function {spec} does not exist.")
535
536 def schemata(self):
537 """Returns a list of schema names in the database"""
538
539 with self.conn.cursor() as cur:
540 _logger.debug("Schemata Query. sql: %r", self.schemata_query)
541 cur.execute(self.schemata_query)
542 return [x[0] for x in cur.fetchall()]
543
544 def _relations(self, kinds=("r", "p", "f", "v", "m")):
545 """Get table or view name metadata

Callers 2

refresh_schemataFunction · 0.80

Calls 2

fetchallMethod · 0.80
executeMethod · 0.45