Documentation ¶
Index ¶
- Constants
- type Operations
- type Params
- type ParamsBuilder
- func (p *ParamsBuilder) And(params Params) *ParamsBuilder
- func (p ParamsBuilder) Build() Params
- func (p *ParamsBuilder) Equals(field string, value interface{}) *ParamsBuilder
- func (p *ParamsBuilder) In(field string, values ...interface{}) *ParamsBuilder
- func (p *ParamsBuilder) Like(field string, value string) *ParamsBuilder
- func (p *ParamsBuilder) Limit(limit uint64) *ParamsBuilder
- func (p *ParamsBuilder) NotEquals(field string, value interface{}) *ParamsBuilder
- func (p *ParamsBuilder) NotIn(field string, values ...interface{}) *ParamsBuilder
- func (p *ParamsBuilder) NotLike(field string, value string) *ParamsBuilder
- func (p *ParamsBuilder) Offset(offset uint64) *ParamsBuilder
- func (p *ParamsBuilder) Or(params Params) *ParamsBuilder
Constants ¶
View Source
const MaxLimit = 500
View Source
const NoLimit = 0
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operations ¶
type ParamsBuilder ¶
type ParamsBuilder struct {
// contains filtered or unexported fields
}
func NewParamsBuilder ¶
func NewParamsBuilder() *ParamsBuilder
func (*ParamsBuilder) And ¶
func (p *ParamsBuilder) And(params Params) *ParamsBuilder
func (ParamsBuilder) Build ¶
func (p ParamsBuilder) Build() Params
func (*ParamsBuilder) Equals ¶
func (p *ParamsBuilder) Equals(field string, value interface{}) *ParamsBuilder
func (*ParamsBuilder) In ¶
func (p *ParamsBuilder) In(field string, values ...interface{}) *ParamsBuilder
func (*ParamsBuilder) Like ¶
func (p *ParamsBuilder) Like(field string, value string) *ParamsBuilder
func (*ParamsBuilder) Limit ¶
func (p *ParamsBuilder) Limit(limit uint64) *ParamsBuilder
func (*ParamsBuilder) NotEquals ¶
func (p *ParamsBuilder) NotEquals(field string, value interface{}) *ParamsBuilder
func (*ParamsBuilder) NotIn ¶
func (p *ParamsBuilder) NotIn(field string, values ...interface{}) *ParamsBuilder
func (*ParamsBuilder) NotLike ¶
func (p *ParamsBuilder) NotLike(field string, value string) *ParamsBuilder
func (*ParamsBuilder) Offset ¶
func (p *ParamsBuilder) Offset(offset uint64) *ParamsBuilder
func (*ParamsBuilder) Or ¶
func (p *ParamsBuilder) Or(params Params) *ParamsBuilder
Click to show internal directories.
Click to hide internal directories.