Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecuteQueryError ¶ added in v0.1.0
func NewValidateQueryError ¶ added in v0.1.0
Types ¶
type ExecuteQueryError ¶ added in v0.1.0
type ExecuteQueryError struct {
// contains filtered or unexported fields
}
func (ExecuteQueryError) Error ¶ added in v0.1.0
func (e ExecuteQueryError) Error() string
func (ExecuteQueryError) Is ¶ added in v0.1.0
func (e ExecuteQueryError) Is(err error) bool
func (ExecuteQueryError) Unwrap ¶ added in v0.1.0
func (e ExecuteQueryError) Unwrap() error
type QueryExecutor ¶
type QueryExecutor[R record.Record] interface { FetchTotal(ctx context.Context, q query.Query[R]) (int, error) FetchAll(ctx context.Context, q query.Query[R]) (Iterator[R], error) FetchAllAndTotal(ctx context.Context, q query.Query[R]) (Iterator[R], int, error) }
func CreateQueryExecutor ¶
func CreateQueryExecutor[R record.Record](selector Selector[R]) QueryExecutor[R]
type Selector ¶ added in v0.1.0
type Selector[R record.Record] interface { PreselectForExecutor(conditions where.Conditions[R]) ([]R, error) }
type ValidateQueryError ¶ added in v0.1.0
type ValidateQueryError struct {
// contains filtered or unexported fields
}
func (ValidateQueryError) Error ¶ added in v0.1.0
func (e ValidateQueryError) Error() string
func (ValidateQueryError) Is ¶ added in v0.1.0
func (e ValidateQueryError) Is(err error) bool
func (ValidateQueryError) Unwrap ¶ added in v0.1.0
func (e ValidateQueryError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.