MCPcopy Index your code
hub / github.com/dnote/dnote / UpdateSystem

Function UpdateSystem

pkg/cli/database/queries.go:64–70  ·  view source on GitHub ↗

UpdateSystem updates a system configuration

(db *DB, key, val interface{})

Source from the content-addressed store, hash-verified

62
63// UpdateSystem updates a system configuration
64func UpdateSystem(db *DB, key, val interface{}) error {
65 if _, err := db.Exec("UPDATE system SET value = ? WHERE key = ?", val, key); err != nil {
66 return errors.Wrap(err, "updating system config")
67 }
68
69 return nil
70}
71
72// DeleteSystem delets the given system record
73func DeleteSystem(db *DB, key string) error {

Callers 3

updateLastMaxUSNFunction · 0.92
updateLastSyncAtFunction · 0.92
TestUpdateSystemFunction · 0.85

Calls 1

ExecMethod · 0.65

Tested by 1

TestUpdateSystemFunction · 0.68