Documentation ¶
Index ¶
- Variables
- func Bool2error(ok bool, egen func() error) error
- func Compose[T, U, V any](f func(T) U, g func(U) V) func(T) V
- func IterFlat2Chan[T any](i Iter[Iter[T]], c chan<- T, lmt int)
- func IterReduce[T, U any](i Iter[T], init U, reducer func(state U, item T) U) U
- func OptionEmptyNew[T any]() optionEmpty[T]
- func OptionNew[T any](val T) optionValue[T]
- func RegisterQueryGenerator(driverName string, gen QueryGenerator)
- type Add
- type AddBucket
- type AddLog
- type Batch
- type Del
- type DelBucket
- type Exec
- type Get
- type InsLog
- type Iter
- func IterEmptyNew[T any]() Iter[T]
- func IterFromArray[T any](a []T) Iter[T]
- func IterFromChan[T any](c <-chan T) Iter[T]
- func IterFromChanNB[T any](c <-chan T) Iter[T]
- func IterFromOpt[T any](o Option[T]) Iter[T]
- func IterInts(lbi int, ube int) Iter[int]
- func IterMap[T, U any](i Iter[T], f func(T) U) Iter[U]
- type Lst
- type Option
- type Pair
- type Pairs2Bucket
- type Query
- type QueryCb
- type QueryGenerator
- type Record
- type RecordConsumer
- type Set
- type Set2Bucket
- type SetBatch
- type SetMany
- type SetMany2Bucket
Constants ¶
This section is empty.
Variables ¶
View Source
var AddBucketFactory func(driverName string) func(Exec) AddBucket = compose(getQueryGeneratorOrEmpty, addBucketFactory)
View Source
var AddFactory func(driverName string) func(Exec) Add = compose(getQueryGeneratorOrEmpty, addFactory)
View Source
var DelBucketFactory func(driverName string) func(Exec) DelBucket = compose(getQueryGeneratorOrEmpty, delBucketFactory)
View Source
var DelFactory func(driverName string) func(Exec) Del = compose(getQueryGeneratorOrEmpty, delFactory)
View Source
var GetFactory func(driverName string) func(Query) Get = compose(getQueryGeneratorOrEmpty, getFactory)
View Source
var LstFactory func(driverName string) func(QueryCb) Lst = compose(getQueryGeneratorOrEmpty, lstFactory)
View Source
var SetFactory func(driverName string) func(Exec) Set = compose(getQueryGeneratorOrEmpty, setFactory)
Functions ¶
func Bool2error ¶
func IterFlat2Chan ¶ added in v0.5.0
func IterReduce ¶ added in v0.6.0
func OptionEmptyNew ¶ added in v0.3.0
func OptionEmptyNew[T any]() optionEmpty[T]
func RegisterQueryGenerator ¶
func RegisterQueryGenerator(driverName string, gen QueryGenerator)
Types ¶
type Iter ¶ added in v0.3.0
func IterEmptyNew ¶ added in v0.3.0
func IterFromArray ¶ added in v0.3.0
func IterFromChan ¶ added in v0.3.0
func IterFromChanNB ¶ added in v0.3.0
func IterFromOpt ¶ added in v0.3.0
func (Iter[T]) IntoInspect ¶ added in v0.5.0
type Option ¶ added in v0.3.0
type Pairs2Bucket ¶ added in v0.3.0
func NonAtomicPairs2BucketNew ¶ added in v0.3.0
func NonAtomicPairs2BucketNew(s Set2Bucket) Pairs2Bucket
type QueryGenerator ¶
type QueryGenerator interface { Get(bucket string) (query string, e error) Del(bucket string) (query string, e error) Add(bucket string) (query string, e error) Set(bucket string) (query string, e error) Lst(bucket string) (query string, e error) DelBucket(bucket string) (query string, e error) AddBucket(bucket string) (query string, e error) }
type RecordConsumer ¶
type Set ¶
func NonAtomicSetNew ¶
type SetMany ¶
func NonAtomicSetsNew ¶
type SetMany2Bucket ¶ added in v0.2.0
func NonAtomicSetsSingleNew ¶ added in v0.2.0
func NonAtomicSetsSingleNew(s Set2Bucket) SetMany2Bucket
Click to show internal directories.
Click to hide internal directories.