NewStorage is a convenience that calls newKeyValueFromConfig with file as the sqlite storage file.
(file string)
| 39 | // NewStorage is a convenience that calls newKeyValueFromConfig |
| 40 | // with file as the sqlite storage file. |
| 41 | func NewStorage(file string) (sorted.KeyValue, error) { |
| 42 | return newKeyValueFromConfig(jsonconfig.Obj{"file": file}) |
| 43 | } |
| 44 | |
| 45 | func newKeyValueFromConfig(cfg jsonconfig.Obj) (sorted.KeyValue, error) { |
| 46 | file := cfg.RequiredString("file") |