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

Method DeleteGraph

db/sqlite/sqlite.go:110–117  ·  view source on GitHub ↗
(ctx context.Context, id db.GraphID)

Source from the content-addressed store, hash-verified

108}
109
110func (d *DB) DeleteGraph(ctx context.Context, id db.GraphID) error {
111 if err := d.q.DeleteGraph(ctx, string(id)); errors.Is(err, sql.ErrNoRows) {
112 return db.NotExists("graph", id)
113 } else if err != nil {
114 return fmt.Errorf("failed to delete graph: %w", err)
115 }
116 return nil
117}
118
119func (d *DB) AddGraphSalt(ctx context.Context, gID db.GraphID, salt *db.GraphSalt) error {
120 id := uuid.NewString()

Callers

nothing calls this directly

Implementers 2

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

Calls 2

NotExistsFunction · 0.92
DeleteGraphMethod · 0.65

Tested by

no test coverage detected