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

Function update_table

backend/apps/datasource/crud/table.py:25–30  ·  view source on GitHub ↗
(session: SessionDep, item: CoreTable)

Source from the content-addressed store, hash-verified

23
24
25def update_table(session: SessionDep, item: CoreTable):
26 record = session.query(CoreTable).filter(CoreTable.id == item.id).first()
27 record.checked = item.checked
28 record.custom_comment = item.custom_comment
29 session.add(record)
30 session.commit()
31
32
33def run_fill_empty_table_and_ds_embedding(session_maker):

Callers 2

update_table_and_fieldsFunction · 0.85
updateTableFunction · 0.85

Calls 3

addMethod · 0.65
firstMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected