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

Function toGraph

db/sqlite/sqlite.go:76–81  ·  view source on GitHub ↗
(g sqlitedb.Graph)

Source from the content-addressed store, hash-verified

74}
75
76func toGraph(g sqlitedb.Graph) *db.Graph {
77 return &db.Graph{
78 ID: db.GraphID(g.ID),
79 Name: g.Name,
80 }
81}
82
83func convSlice[I any, O any](in []I, fn func(I) O) []O {
84 out := make([]O, len(in))

Callers 1

GraphMethod · 0.85

Calls 1

GraphIDTypeAlias · 0.92

Tested by

no test coverage detected