MCPcopy Index your code
hub / github.com/dataease/SQLBot / getTables

Function getTables

backend/apps/datasource/crud/datasource.py:145–148  ·  view source on GitHub ↗
(session: SessionDep, id: int)

Source from the content-addressed store, hash-verified

143
144
145def getTables(session: SessionDep, id: int):
146 ds = session.exec(select(CoreDatasource).where(CoreDatasource.id == id)).first()
147 tables = get_tables(ds)
148 return tables
149
150
151def getTablesByDs(session: SessionDep, ds: CoreDatasource):

Callers 1

get_tablesFunction · 0.85

Calls 3

get_tablesFunction · 0.90
firstMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected