MCPcopy
hub / github.com/cayleygraph/cayley / registerQuadStore

Function registerQuadStore

graph/sql/quadstore.go:31–42  ·  view source on GitHub ↗
(name, typ string)

Source from the content-addressed store, hash-verified

29}
30
31func registerQuadStore(name, typ string) {
32 graph.RegisterQuadStore(name, graph.QuadStoreRegistration{
33 NewFunc: func(addr string, options graph.Options) (graph.QuadStore, error) {
34 return New(typ, addr, options)
35 },
36 UpgradeFunc: nil,
37 InitFunc: func(addr string, options graph.Options) error {
38 return Init(typ, addr, options)
39 },
40 IsPersistent: true,
41 })
42}
43
44var _ Value = StringVal("")
45

Callers 2

RegisterFunction · 0.85
initFunction · 0.85

Calls 3

RegisterQuadStoreFunction · 0.92
NewFunction · 0.70
InitFunction · 0.70

Tested by

no test coverage detected