Documentation ¶
Index ¶
- Variables
- type CollectionOperator
- func (d *CollectionOperator) ExecuteDelete(ctx context.Context, delete *clerk.Delete[*clerk.Collection]) (int, error)
- func (q *CollectionOperator) ExecuteQuery(ctx context.Context, query *clerk.Query[*clerk.Collection]) (<-chan *clerk.Collection, error)
- func (u *CollectionOperator) ExecuteUpdate(ctx context.Context, update *clerk.Update[*clerk.Collection]) error
- type Config
- type Connection
- type DatabaseOperator
- func (d *DatabaseOperator) ExecuteDelete(ctx context.Context, delete *clerk.Delete[*clerk.Database]) (int, error)
- func (q *DatabaseOperator) ExecuteQuery(ctx context.Context, query *clerk.Query[*clerk.Database]) (<-chan *clerk.Database, error)
- func (t *DatabaseOperator) ExecuteTransaction(ctx context.Context, fn clerk.TransactionFn) error
- type IndexOperator
- func (c *IndexOperator) ExecuteCreate(ctx context.Context, create *clerk.Create[*clerk.Index]) error
- func (d *IndexOperator) ExecuteDelete(ctx context.Context, delete *clerk.Delete[*clerk.Index]) (int, error)
- func (q *IndexOperator) ExecuteQuery(ctx context.Context, query *clerk.Query[*clerk.Index]) (<-chan *clerk.Index, error)
- type Operator
- func (c *Operator) ExecuteCreate(ctx context.Context, create *clerk.Create[T]) error
- func (d *Operator) ExecuteDelete(ctx context.Context, delete *clerk.Delete[T]) (int, error)
- func (q *Operator) ExecuteQuery(ctx context.Context, query *clerk.Query[T]) (<-chan T, error)
- func (u *Operator) ExecuteUpdate(ctx context.Context, update *clerk.Update[T]) error
- func (w *Operator) ExecuteWatch(ctx context.Context, watch *clerk.Watch[T]) (<-chan *clerk.Event[T], error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnknownFilter = errors.New("unknown filter")
)
Functions ¶
This section is empty.
Types ¶
type CollectionOperator ¶
type CollectionOperator struct {
// contains filtered or unexported fields
}
func NewCollectionOperator ¶
func NewCollectionOperator(connection *Connection, database *clerk.Database) *CollectionOperator
func (*CollectionOperator) ExecuteDelete ¶
func (*CollectionOperator) ExecuteQuery ¶
func (*CollectionOperator) ExecuteUpdate ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection( ctx context.Context, config Config, ) (*Connection, error)
func (*Connection) Close ¶
func (c *Connection) Close(handler func(err error))
type DatabaseOperator ¶
type DatabaseOperator struct {
// contains filtered or unexported fields
}
func NewDatabaseOperator ¶
func NewDatabaseOperator(connection *Connection) *DatabaseOperator
func (*DatabaseOperator) ExecuteDelete ¶
func (*DatabaseOperator) ExecuteQuery ¶
func (*DatabaseOperator) ExecuteTransaction ¶
type IndexOperator ¶
type IndexOperator struct {
// contains filtered or unexported fields
}
func NewIndexOperator ¶
func NewIndexOperator(connection *Connection, collection *clerk.Collection) *IndexOperator
func (*IndexOperator) ExecuteCreate ¶
func (*IndexOperator) ExecuteDelete ¶
func (*IndexOperator) ExecuteQuery ¶
type Operator ¶
type Operator[T any] struct { // contains filtered or unexported fields }
func NewOperator ¶
func NewOperator[T any](connection *Connection, collection *clerk.Collection) *Operator[T]
func (*Operator) ExecuteCreate ¶
func (*Operator) ExecuteDelete ¶
func (*Operator) ExecuteQuery ¶
func (*Operator) ExecuteUpdate ¶
func (*Operator) ExecuteWatch ¶
Source Files ¶
- collection_deleter.go
- collection_operator.go
- collection_querier.go
- collection_updater.go
- config.go
- connection.go
- creator.go
- database_deleter.go
- database_operator.go
- database_querier.go
- deleter.go
- filters.go
- index_creator.go
- index_deleter.go
- index_operator.go
- index_querier.go
- operator.go
- querier.go
- transactor.go
- updater.go
- watcher.go
Click to show internal directories.
Click to hide internal directories.