MCPcopy Index your code
hub / github.com/dbcli/mycli / databases

Method databases

mycli/sqlexecute.py:456–461  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

454 _logger.error('No foreign key completions due to %r', e)
455
456 def databases(self) -> list[str]:
457 assert isinstance(self.conn, Connection)
458 with self.conn.cursor() as cur:
459 _logger.debug("Databases Query. sql: %r", self.databases_query)
460 cur.execute(self.databases_query)
461 return [x[0] for x in cur.fetchall()]
462
463 def functions(self, schema: str | None = None) -> Generator[tuple[str, str], None, None]:
464 """Yields tuples of (schema_name, function_name) for *schema*."""

Calls 4

cursorMethod · 0.45
debugMethod · 0.45
executeMethod · 0.45
fetchallMethod · 0.45