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 interface { FetchTotal(ctx context.Context, q query.Query) (int, error) FetchAll(ctx context.Context, q query.Query) (Iterator, error) FetchAllAndTotal(ctx context.Context, q query.Query) (Iterator, int, error) }
func CreateQueryExecutor ¶
func CreateQueryExecutor(selector Selector) QueryExecutor
type Selector ¶ added in v0.1.0
type Selector interface {
PreselectForExecutor(conditions where.Conditions) ([]record.Record, 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.