MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / SaveSettingItem

Function SaveSettingItem

internal/db/settingitem.go:63–65  ·  view source on GitHub ↗
(item *model.SettingItem)

Source from the content-addressed store, hash-verified

61}
62
63func SaveSettingItem(item *model.SettingItem) error {
64 return errors.WithStack(db.Save(item).Error)
65}
66
67func DeleteSettingItemByKey(key string) error {
68 return errors.WithStack(db.Where(fmt.Sprintf("%s = ?", columnName("key")), key).Delete(model.SettingItem{}).Error)

Callers 1

SaveSettingItemFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected