Documentation ¶
Index ¶
- Constants
- type QueryBuilder
- func (q *QueryBuilder) Arguments() []interface{}
- func (q *QueryBuilder) Limit(val int)
- func (q *QueryBuilder) Offset(val int)
- func (q *QueryBuilder) OrderBy(field, order string)
- func (q *QueryBuilder) Query() string
- func (q QueryBuilder) SetBaseQuery(query string) *QueryBuilder
- func (q *QueryBuilder) Value(key string, val interface{})
- func (q *QueryBuilder) Where(key, operator string, val interface{})
- func (q *QueryBuilder) WhereOr(key, operator string, val interface{}, valueType ...string)
Constants ¶
View Source
const (
ColumnTypeArrayVarchar = "array::varchar"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryBuilder ¶
type QueryBuilder struct {
// contains filtered or unexported fields
}
func NewQueryBuilder ¶
func NewQueryBuilder(driverName string, baseQuery string) *QueryBuilder
func (*QueryBuilder) Arguments ¶
func (q *QueryBuilder) Arguments() []interface{}
func (*QueryBuilder) Limit ¶
func (q *QueryBuilder) Limit(val int)
func (*QueryBuilder) Offset ¶
func (q *QueryBuilder) Offset(val int)
func (*QueryBuilder) OrderBy ¶
func (q *QueryBuilder) OrderBy(field, order string)
func (*QueryBuilder) Query ¶
func (q *QueryBuilder) Query() string
func (QueryBuilder) SetBaseQuery ¶
func (q QueryBuilder) SetBaseQuery(query string) *QueryBuilder
func (*QueryBuilder) Value ¶
func (q *QueryBuilder) Value(key string, val interface{})
func (*QueryBuilder) Where ¶
func (q *QueryBuilder) Where(key, operator string, val interface{})
func (*QueryBuilder) WhereOr ¶
func (q *QueryBuilder) WhereOr(key, operator string, val interface{}, valueType ...string)
Click to show internal directories.
Click to hide internal directories.