MCPcopy Create free account
hub / github.com/CloudOrc/SolidUI / get_tables

Method get_tables

solidui/datasource_plugin/base.py:108–111  ·  view source on GitHub ↗
(self, database)

Source from the content-addressed store, hash-verified

106 return [db[0] for db in cursor]
107
108 def get_tables(self, database):
109 cursor = self.conn.cursor()
110 cursor.execute(f"SHOW TABLES FROM {database}")
111 return [table[0] for table in cursor]
112
113 def run_query(self, sql):
114 cursor = self.conn.cursor()

Callers 1

queryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected