Move DB record maintenance to storage interface

This commit is contained in:
Daniel 2020-05-05 21:34:19 +02:00
parent 4eb21405cc
commit bea130d755
16 changed files with 385 additions and 224 deletions

View file

@ -16,7 +16,10 @@ type Example struct {
}
var (
exampleDB = NewInterface(nil)
exampleDB = NewInterface(&Options{
Internal: true,
Local: true,
})
)
// GetExample gets an Example from the database.