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

Method GraphEncryptKeys

db/mem/mem.go:138–144  ·  view source on GitHub ↗
(_ context.Context, id db.GraphID)

Source from the content-addressed store, hash-verified

136}
137
138func (d *DB) GraphEncryptKeys(_ context.Context, id db.GraphID) ([]*db.GraphEncryptKey, error) {
139 g, ok := d.graphs[id]
140 if !ok {
141 return nil, db.NotExists("graph", id)
142 }
143 return g.keys, nil
144}
145
146func (d *DB) SetFileMeta(_ context.Context, id db.GraphID, md *db.FileMeta) error {
147 if md.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