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

Method AllFileMeta

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

Source from the content-addressed store, hash-verified

226}
227
228func (d *DB) AllFileMeta(ctx context.Context, id db.GraphID) ([]*db.FileMeta, error) {
229 fms, err := d.q.AllFileMeta(ctx, string(id))
230 if errors.Is(err, sql.ErrNoRows) {
231 return nil, db.NotExists("graph", id)
232 } else if err != nil {
233 return nil, fmt.Errorf("failed to load all file metadata for graph: %w", err)
234 }
235 return convSlice(fms, toFileMeta), nil
236}

Callers

nothing calls this directly

Implementers 2

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

Calls 3

NotExistsFunction · 0.92
convSliceFunction · 0.85
AllFileMetaMethod · 0.65

Tested by

no test coverage detected