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

Function getFields

backend/apps/datasource/crud/datasource.py:157–160  ·  view source on GitHub ↗
(session: SessionDep, id: int, table_name: str)

Source from the content-addressed store, hash-verified

155
156
157def getFields(session: SessionDep, id: int, table_name: str):
158 ds = session.exec(select(CoreDatasource).where(CoreDatasource.id == id)).first()
159 fields = get_fields(ds, table_name)
160 return fields
161
162
163def getFieldsByDs(session: SessionDep, ds: CoreDatasource, table_name: str):

Callers 1

get_fieldsFunction · 0.85

Calls 3

get_fieldsFunction · 0.90
firstMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected