Documentation ¶
Index ¶
- type DocumentDecoder
- type DocumentEncoder
- type Mapper
- type Txn
- func (tx Txn) Commit() error
- func (tx Txn) Context() context.Context
- func (tx Txn) Get(table string, query database.Query, v interface{}) error
- func (tx Txn) Insert(table string, v interface{}) error
- func (tx Txn) List(table string, query database.Query, v interface{}) error
- func (tx Txn) Remove(table string, query database.Query) error
- func (tx Txn) Rollback() error
- func (tx Txn) Update(table string, query database.Query, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocumentDecoder ¶ added in v0.1.2
DocumentDecoder decodes a database document.
type DocumentEncoder ¶ added in v0.1.5
type DocumentEncoder interface {
Encode() interface{}
}
DocumentEncoder encodes a database document
type Mapper ¶ added in v0.0.31
type Mapper struct {
// contains filtered or unexported fields
}
Mapper Data mapper for various backends
type Txn ¶ added in v0.0.35
type Txn struct {
// contains filtered or unexported fields
}
Txn A unit of work
Source Files ¶
Click to show internal directories.
Click to hide internal directories.