Documentation
¶
Index ¶
- type Collection
- func (c *Collection) Get(ctx context.Context, key string, fn GetFn) (ok bool, err error)
- func (c *Collection) GetById(ctx context.Context, id int64, fn GetFn) (err error)
- func (c *Collection) List(ctx context.Context, keyPrefix string, fn GetFn, opts ListOptions) (err error)
- func (c *Collection) Put(ctx context.Context, key string, buf []byte) (rowid int64, err error)
- func (c *Collection) Select(ctx context.Context, rowfn RowFn, opts SelectOptions) (err error)
- type CollectionOptions
- type Counter
- type CounterOptions
- type GeneratedColumn
- type GetColumnValueFn
- type GetFn
- type KV
- func (kv *KV) Close() (err error)
- func (kv *KV) Collection(name string, opts *CollectionOptions) (col *Collection, err error)
- func (kv *KV) DefaultCollection() *Collection
- func (kv *KV) JsonCollection(name string, opts *CollectionOptions) (col *Collection, err error)
- func (kv *KV) WithTx(fn func() error) (err error)
- type ListOptions
- type Options
- type RowFn
- type SelectOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func (*Collection) List ¶
func (c *Collection) List(ctx context.Context, keyPrefix string, fn GetFn, opts ListOptions) (err error)
func (*Collection) Select ¶
func (c *Collection) Select(ctx context.Context, rowfn RowFn, opts SelectOptions) (err error)
type CollectionOptions ¶
type CollectionOptions struct {
Delimiter string
Columns []GeneratedColumn
Indexes []string
}
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
func NewCounter ¶
func NewCounter(col *Collection, key string, opts CounterOptions) (c *Counter, err error)
type CounterOptions ¶
type GeneratedColumn ¶
type KV ¶
type KV struct {
// contains filtered or unexported fields
}
func (*KV) Collection ¶
func (kv *KV) Collection(name string, opts *CollectionOptions) (col *Collection, err error)
func (*KV) DefaultCollection ¶
func (kv *KV) DefaultCollection() *Collection
func (*KV) JsonCollection ¶
func (kv *KV) JsonCollection(name string, opts *CollectionOptions) (col *Collection, err error)
type ListOptions ¶
type RowFn ¶
type RowFn func(fn GetColumnValueFn) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.