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

Function toGraphSalt

db/sqlite/sqlite.go:142–147  ·  view source on GitHub ↗
(g sqlitedb.GraphSalt)

Source from the content-addressed store, hash-verified

140}
141
142func toGraphSalt(g sqlitedb.GraphSalt) *db.GraphSalt {
143 return &db.GraphSalt{
144 Value: g.Value,
145 ExpiredAt: g.ExpiresAt,
146 }
147}
148
149func (d *DB) AddGraphEncryptKey(ctx context.Context, gID db.GraphID, gek *db.GraphEncryptKey) error {
150 id := uuid.NewString()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected