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

Function execSql

backend/apps/datasource/crud/datasource.py:168–170  ·  view source on GitHub ↗
(session: SessionDep, id: int, sql: str)

Source from the content-addressed store, hash-verified

166
167
168def execSql(session: SessionDep, id: int, sql: str):
169 ds = session.exec(select(CoreDatasource).where(CoreDatasource.id == id)).first()
170 return exec_sql(ds, sql, True)
171
172
173def sync_single_fields(session: SessionDep, trans: Trans, id: int):

Callers

nothing calls this directly

Calls 3

exec_sqlFunction · 0.90
firstMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected