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

Function convSlice

db/sqlite/sqlite.go:83–89  ·  view source on GitHub ↗
(in []I, fn func(I) O)

Source from the content-addressed store, hash-verified

81}
82
83func convSlice[I any, O any](in []I, fn func(I) O) []O {
84 out := make([]O, len(in))
85 for i, v := range in {
86 out[i] = fn(v)
87 }
88 return out
89}
90
91func (d *DB) Graphs(ctx context.Context) ([]*db.Graph, error) {
92 gs, err := d.q.Graphs(ctx)

Callers 5

GraphsMethod · 0.85
GraphSaltsMethod · 0.85
GraphEncryptKeysMethod · 0.85
BatchFileMetaMethod · 0.85
AllFileMetaMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected