Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
76
func
toGraph(g sqlitedb.Graph) *db.Graph {
77
return
&db.Graph{
78
ID: db.GraphID(g.ID),
79
Name: g.Name,
80
}
81
}
82
83
func
convSlice[I any, O any](in []I, fn
func
(I) O) []O {
84
out := make([]O, len(in))
Callers
1
Graph
Method · 0.85
Calls
1
GraphID
TypeAlias · 0.92
Tested by
no test coverage detected