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

Function InsertSystem

pkg/cli/database/queries.go:35–41  ·  view source on GitHub ↗

InsertSystem inserets a system configuration

(db *DB, key, val string)

Source from the content-addressed store, hash-verified

33
34// InsertSystem inserets a system configuration
35func InsertSystem(db *DB, key, val string) error {
36 if _, err := db.Exec("INSERT INTO system (key, value) VALUES (? , ?);", key, val); err != nil {
37 return errors.Wrap(err, "saving system config")
38 }
39
40 return nil
41}
42
43// UpsertSystem inserts or updates a system configuration
44func UpsertSystem(db *DB, key, val string) error {

Callers 1

TestInsertSystemFunction · 0.85

Calls 1

ExecMethod · 0.65

Tested by 1

TestInsertSystemFunction · 0.68