MCPcopy Create free account
hub / github.com/bcspragu/logseq-sync / AddGraphSalt

Method AddGraphSalt

db/mem/mem.go:112–119  ·  view source on GitHub ↗
(_ context.Context, id db.GraphID, salt *db.GraphSalt)

Source from the content-addressed store, hash-verified

110}
111
112func (d *DB) AddGraphSalt(_ context.Context, id db.GraphID, salt *db.GraphSalt) error {
113 g, ok := d.graphs[id]
114 if !ok {
115 return db.NotExists("graph", id)
116 }
117 g.salts = append(g.salts, salt)
118 return nil
119}
120
121func (d *DB) GraphSalts(_ context.Context, id db.GraphID) ([]*db.GraphSalt, error) {
122 g, ok := d.graphs[id]

Callers

nothing calls this directly

Implementers 2

DBdb/mem/mem.go
DBdb/sqlite/sqlite.go

Calls 1

NotExistsFunction · 0.92

Tested by

no test coverage detected