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

Method AddGraphEncryptKey

db/mem/mem.go:129–136  ·  view source on GitHub ↗
(_ context.Context, id db.GraphID, gek *db.GraphEncryptKey)

Source from the content-addressed store, hash-verified

127}
128
129func (d *DB) AddGraphEncryptKey(_ context.Context, id db.GraphID, gek *db.GraphEncryptKey) error {
130 g, ok := d.graphs[id]
131 if !ok {
132 return db.NotExists("graph", id)
133 }
134 g.keys = append(g.keys, gek)
135 return nil
136}
137
138func (d *DB) GraphEncryptKeys(_ context.Context, id db.GraphID) ([]*db.GraphEncryptKey, error) {
139 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