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

Method Graphs

db/sqlite/sqlite.go:91–97  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

89}
90
91func (d *DB) Graphs(ctx context.Context) ([]*db.Graph, error) {
92 gs, err := d.q.Graphs(ctx)
93 if err != nil {
94 return nil, fmt.Errorf("failed to load graphs: %w", err)
95 }
96 return convSlice(gs, toGraph), nil
97}
98func (d *DB) CreateGraph(ctx context.Context, name string) (db.GraphID, db.Tx, error) {
99 id := uuid.NewString()
100 tx, err := d.q.CreateGraph(ctx, sqlitedb.CreateGraphParams{

Callers

nothing calls this directly

Implementers 2

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

Calls 2

convSliceFunction · 0.85
GraphsMethod · 0.65

Tested by

no test coverage detected