MCPcopy Create free account
hub / github.com/dataease/SQLBot / chooseTables

Function chooseTables

backend/apps/datasource/crud/datasource.py:93–97  ·  view source on GitHub ↗
(session: SessionDep, trans: Trans, id: int, tables: List[CoreTable])

Source from the content-addressed store, hash-verified

91
92
93def chooseTables(session: SessionDep, trans: Trans, id: int, tables: List[CoreTable]):
94 ds = session.query(CoreDatasource).filter(CoreDatasource.id == id).first()
95 check_status(session, trans, ds, True)
96 sync_table(session, ds, tables)
97 updateNum(session, ds)
98
99
100def update_ds(session: SessionDep, trans: Trans, user: CurrentUser, ds: CoreDatasource):

Callers 1

innerFunction · 0.85

Calls 5

check_statusFunction · 0.85
sync_tableFunction · 0.85
updateNumFunction · 0.85
firstMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected