Documentation ¶
Index ¶
- Variables
- type Conn
- type Database
- type Decoder
- type Encoder
- type ExecStmt
- type Indexable
- type Limitable
- type MakeDecoder
- type MakeEncoder
- type MultiStmt
- type PutStmt
- type Query
- type QueryImpl
- func (this QueryImpl) Between(lower, upper string) Limitable
- func (this QueryImpl) By(index string) Query
- func (this QueryImpl) Delete(id, rev string) ExecStmt
- func (this QueryImpl) DeleteRecord(record Record) ExecStmt
- func (this QueryImpl) DropTable(name string) ExecStmt
- func (this QueryImpl) Exec(conn Conn) (ResultSet, error)
- func (this QueryImpl) Get(key string) SingleStmt
- func (this QueryImpl) GetAll(key string) Limitable
- func (this QueryImpl) Insert(id string, doc interface{}) PutStmt
- func (this QueryImpl) Limit(count uint) Query
- func (this QueryImpl) Table(name string) Table
- func (this QueryImpl) Update(id, rev string, doc interface{}) PutStmt
- func (this QueryImpl) UpdateRecord(record Record) PutStmt
- type Record
- type RecordImpl
- func (this *RecordImpl) Id() string
- func (this *RecordImpl) Keys() kissdif.IndexMap
- func (this *RecordImpl) MustScan(into interface{}) interface{}
- func (this *RecordImpl) MustSet(doc interface{})
- func (this *RecordImpl) Rev() string
- func (this *RecordImpl) Scan(into interface{}) (interface{}, error)
- func (this *RecordImpl) Set(doc interface{}) (err error)
- type RecordReader
- type RecordReaderImpl
- type ResultSet
- type ResultSetImpl
- type SingleStmt
- type Table
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MsgpackHandle = &codec.MsgpackHandle{}
)
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type MakeDecoder ¶
type MakeEncoder ¶
type QueryImpl ¶
func (QueryImpl) DeleteRecord ¶
func (QueryImpl) Get ¶
func (this QueryImpl) Get(key string) SingleStmt
func (QueryImpl) UpdateRecord ¶
type RecordImpl ¶
type RecordImpl struct { Id_ string `json:"id,omitempty" codec:"id,omitempty"` Rev_ string `json:"rev,omitempty" codec:"rev,omitempty"` Doc_ json.RawMessage `json:"doc,omitempty" codec:"doc,omitempty"` Keys_ kissdif.IndexMap `json:"keys,omitempty" codec:"keys,omitempty"` }
func (*RecordImpl) Id ¶
func (this *RecordImpl) Id() string
func (*RecordImpl) Keys ¶
func (this *RecordImpl) Keys() kissdif.IndexMap
func (*RecordImpl) MustScan ¶
func (this *RecordImpl) MustScan(into interface{}) interface{}
func (*RecordImpl) MustSet ¶
func (this *RecordImpl) MustSet(doc interface{})
func (*RecordImpl) Rev ¶
func (this *RecordImpl) Rev() string
func (*RecordImpl) Scan ¶
func (this *RecordImpl) Scan(into interface{}) (interface{}, error)
func (*RecordImpl) Set ¶
func (this *RecordImpl) Set(doc interface{}) (err error)
type RecordReader ¶
type RecordReaderImpl ¶
type RecordReaderImpl struct {
// contains filtered or unexported fields
}
func (*RecordReaderImpl) MustScan ¶
func (this *RecordReaderImpl) MustScan(into interface{}) interface{}
func (*RecordReaderImpl) Next ¶
func (this *RecordReaderImpl) Next() bool
func (*RecordReaderImpl) Record ¶
func (this *RecordReaderImpl) Record() Record
func (*RecordReaderImpl) Scan ¶
func (this *RecordReaderImpl) Scan(into interface{}) (interface{}, error)
type ResultSet ¶
type ResultSet interface { More() bool Count() int Reader() RecordReader }
type ResultSetImpl ¶
type ResultSetImpl struct { More_ bool `json:"more,omitempty" codec:"more,omitempty"` Records_ []*RecordImpl `json:"records,omitempty" codec:"records,omitempty"` }
func (*ResultSetImpl) Count ¶
func (this *ResultSetImpl) Count() int
func (*ResultSetImpl) More ¶
func (this *ResultSetImpl) More() bool
func (*ResultSetImpl) Reader ¶
func (this *ResultSetImpl) Reader() RecordReader
type SingleStmt ¶
Click to show internal directories.
Click to hide internal directories.