(name string, f Registration)
| 13 | var types = make(map[string]Registration) |
| 14 | |
| 15 | func 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 | |
| 24 | type Registration struct { |
| 25 | Driver string // sql driver to use on dial |
no test coverage detected