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

Function Register

graph/sql/database.go:15–22  ·  view source on GitHub ↗
(name string, f Registration)

Source from the content-addressed store, hash-verified

13var types = make(map[string]Registration)
14
15func Register(name string, f Registration) {
16 if f.Driver == "" {
17 panic("no sql driver in type definition")
18 }
19 types[name] = f
20
21 registerQuadStore(name, name)
22}
23
24type Registration struct {
25 Driver string // sql driver to use on dial

Callers 1

initFunction · 0.92

Calls 1

registerQuadStoreFunction · 0.85

Tested by

no test coverage detected