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

Function update_field

backend/apps/datasource/crud/field.py:22–27  ·  view source on GitHub ↗
(session: SessionDep, item: CoreField)

Source from the content-addressed store, hash-verified

20
21
22def update_field(session: SessionDep, item: CoreField):
23 record = session.query(CoreField).filter(CoreField.id == item.id).first()
24 record.checked = item.checked
25 record.custom_comment = item.custom_comment
26 session.add(record)
27 session.commit()

Callers 2

update_table_and_fieldsFunction · 0.85
updateFieldFunction · 0.85

Calls 3

addMethod · 0.65
firstMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected