Shallow Get All
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
package utils
|
||||
|
||||
type ShallowDBObject interface {
|
||||
GenerateID()
|
||||
GetID() string
|
||||
GetName() string
|
||||
}
|
||||
|
||||
type DBObject interface {
|
||||
GenerateID()
|
||||
GetID() string
|
||||
@@ -12,6 +18,7 @@ type DBObject interface {
|
||||
type Accessor interface {
|
||||
SetLogger(t DataType)
|
||||
GetType() string
|
||||
LoadAll() ([]ShallowDBObject, int, error)
|
||||
LoadOne(id string) (DBObject, int, error)
|
||||
DeleteOne(id string) (DBObject, int, error)
|
||||
CopyOne(data DBObject) (DBObject, int, error)
|
||||
|
||||
Reference in New Issue
Block a user