mirror of
https://github.com/safing/portbase
synced 2025-09-17 02:29:50 +00:00
Rename model.Model to record.Record
This commit is contained in:
parent
9b7365376c
commit
d76bfd55dc
23 changed files with 31 additions and 619 deletions
|
@ -2,15 +2,15 @@ package storage
|
|||
|
||||
import (
|
||||
"github.com/Safing/portbase/database/iterator"
|
||||
"github.com/Safing/portbase/database/model"
|
||||
"github.com/Safing/portbase/database/record"
|
||||
"github.com/Safing/portbase/database/query"
|
||||
)
|
||||
|
||||
// Interface defines the database storage API.
|
||||
type Interface interface {
|
||||
Exists(key string) (bool, error)
|
||||
Get(key string) (model.Model, error)
|
||||
Put(m model.Model) error
|
||||
Get(key string) (record.Record, error)
|
||||
Put(m record.Record) error
|
||||
Delete(key string) error
|
||||
Query(q *query.Query) (*iterator.Iterator, error)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue