Documentation ¶
Index ¶
- Constants
- Variables
- type Builder
- func (b *Builder) Build() Query
- func (b *Builder) Count(countingResult *int64) *Builder
- func (b *Builder) Equal(fieldName string, value interface{}) *Builder
- func (b *Builder) Find(findingResult interface{}) *Builder
- func (b *Builder) First(firstResult interface{}) *Builder
- func (b *Builder) Greater(fieldName string, value interface{}) *Builder
- func (b *Builder) GreaterOrEqual(fieldName string, value interface{}) *Builder
- func (b *Builder) InList(fieldName string, list []interface{}) *Builder
- func (b *Builder) Less(fieldName string, value interface{}) *Builder
- func (b *Builder) LessOrEqual(fieldName string, value interface{}) *Builder
- func (b *Builder) Limit(limit int) *Builder
- func (b *Builder) Model(model interface{}) *Builder
- func (b *Builder) Not(fieldName string, value interface{}) *Builder
- func (b *Builder) NotEqual(fieldName string, value interface{}) *Builder
- func (b *Builder) Offset(offset int) *Builder
- func (b *Builder) Preload(column string, condition ...interface{}) *Builder
- func (b *Builder) Sort(fieldName string, order Order) *Builder
- func (b *Builder) TableName(tableName string) *Builder
- type ComparingObject
- type Executor
- type Operator
- type Order
- type Query
- type QueryKeyValue
- type Values
Constants ¶
View Source
const ( OrderAsc = Order("ASC") OrderDesc = Order("DESC") )
Variables ¶
View Source
var (
ErrCastingError = errors.New("cannot cast")
)
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder() *Builder
func (*Builder) GreaterOrEqual ¶
func (*Builder) LessOrEqual ¶
type ComparingObject ¶
type ComparingObject struct { QueryKeyValue // contains filtered or unexported fields }
type QueryKeyValue ¶
type QueryKeyValue struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.