Documentation
¶
Index ¶
- type Collection
- type Datastore
- func (db *Datastore) Close()
- func (db *Datastore) Delete(collection string, object data.Object, comment string) *derp.Error
- func (db *Datastore) Load(collection string, filter data.Expression, target data.Object) *derp.Error
- func (db *Datastore) Save(collection string, object data.Object, comment string) *derp.Error
- func (db *Datastore) Session(ctx context.Context) *Datastore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datastore ¶
type Datastore map[string]Collection
Datastore is a mock database
func (*Datastore) Close ¶ added in v0.2.1
func (db *Datastore) Close()
Close cleans up any remaining data created by the mock session.
func (*Datastore) Load ¶
func (db *Datastore) Load(collection string, filter data.Expression, target data.Object) *derp.Error
Load retrieves a single record from the mock collection.
Click to show internal directories.
Click to hide internal directories.