Returns a list of schema names in the database
(self)
| 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 |