Work on datbase controller

This commit is contained in:
Daniel 2018-09-07 19:15:40 +02:00
parent 818cb332b4
commit 3d60431376
6 changed files with 77 additions and 90 deletions

View file

@ -4,8 +4,8 @@ import (
"errors"
"github.com/Safing/portbase/database/iterator"
"github.com/Safing/portbase/database/record"
"github.com/Safing/portbase/database/query"
"github.com/Safing/portbase/database/record"
"github.com/Safing/portbase/database/storage"
)
@ -50,6 +50,11 @@ func (s *Sinkhole) Query(q *query.Query) (*iterator.Iterator, error) {
return nil, errors.New("query not implemented by sinkhole")
}
// ReadOnly returns whether the database is read only.
func (s *Sinkhole) ReadOnly() bool {
return false
}
// Maintain runs a light maintenance operation on the database.
func (s *Sinkhole) Maintain() error {
return nil