Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompileDeleteFn ¶
type CompileDeleteFn func(sq.DeleteBuilder) sq.DeleteBuilder
CompileDeleteFn function
type CompileSelectFn ¶
type CompileSelectFn func(sq.SelectBuilder) sq.SelectBuilder
CompileSelectFn function
type CompileUpdateFn ¶
type CompileUpdateFn func(sq.UpdateBuilder) sq.UpdateBuilder
CompileUpdateFn function
type DeleteOption ¶
type DeleteOption interface {
CompileDelete(sq.DeleteBuilder) sq.DeleteBuilder
}
DeleteOption to compile delete query
func NewDeleteOption ¶
func NewDeleteOption(fn CompileDeleteFn) DeleteOption
NewDeleteOption return new instance of DeleteOption
type Eq ¶
type Eq map[string]interface{}
Eq equal
func (Eq) CompileDelete ¶
func (e Eq) CompileDelete(base sq.DeleteBuilder) sq.DeleteBuilder
CompileDelete to compile delete query for filtering
func (Eq) CompileSelect ¶
func (e Eq) CompileSelect(base sq.SelectBuilder) sq.SelectBuilder
CompileSelect to compile select query for filtering
func (Eq) CompileUpdate ¶
func (e Eq) CompileUpdate(base sq.UpdateBuilder) sq.UpdateBuilder
CompileUpdate to compile update query for filtering
type OffsetPagination ¶
OffsetPagination param
func (*OffsetPagination) CompileSelect ¶
func (p *OffsetPagination) CompileSelect(base sq.SelectBuilder) sq.SelectBuilder
CompileSelect to compile select query for pagination
type SelectOption ¶
type SelectOption interface {
CompileSelect(sq.SelectBuilder) sq.SelectBuilder
}
SelectOption to compile select query
func NewSelectOption ¶
func NewSelectOption(fn CompileSelectFn) SelectOption
NewSelectOption return new instance of SelectOption
type Sorts ¶
type Sorts []string
Sorts sorting
func (Sorts) CompileSelect ¶
func (s Sorts) CompileSelect(base sq.SelectBuilder) sq.SelectBuilder
CompileSelect to compile select query for sorting
type UpdateOption ¶
type UpdateOption interface {
CompileUpdate(sq.UpdateBuilder) sq.UpdateBuilder
}
UpdateOption to compile update query
func NewUpdateOption ¶
func NewUpdateOption(fn CompileUpdateFn) UpdateOption
NewUpdateOption return new instance of UpdateOption
type Where ¶
type Where []interface{}
Where conditions as squirel query builder
func (Where) CompileDelete ¶
func (e Where) CompileDelete(base sq.DeleteBuilder) sq.DeleteBuilder
CompileDelete to compile delete query for filtering
func (Where) CompileSelect ¶
func (e Where) CompileSelect(base sq.SelectBuilder) sq.SelectBuilder
CompileSelect to compile select query for filtering
func (Where) CompileUpdate ¶
func (e Where) CompileUpdate(base sq.UpdateBuilder) sq.UpdateBuilder
CompileUpdate to compile update query for filtering