Documentation ¶
Index ¶
- type M
- type SqlBuilder
- func (sb *SqlBuilder) And() *SqlBuilder
- func (sb *SqlBuilder) Eq(field string, value interface{}) *SqlBuilder
- func (sb *SqlBuilder) EqAny(field string, value interface{}) *SqlBuilder
- func (sb *SqlBuilder) From(table string) *SqlBuilder
- func (sb *SqlBuilder) Ge(field string, value interface{}) *SqlBuilder
- func (sb *SqlBuilder) Gt(field string, value interface{}) *SqlBuilder
- func (sb *SqlBuilder) Le(field string, value interface{}) *SqlBuilder
- func (sb *SqlBuilder) LeftJoin(table, condition string) *SqlBuilder
- func (sb *SqlBuilder) Limit(limit int) *SqlBuilder
- func (sb *SqlBuilder) Lt(field string, value interface{}) *SqlBuilder
- func (sb *SqlBuilder) Offset(offset int) *SqlBuilder
- func (sb *SqlBuilder) OrderBy(orderBy map[string]string) *SqlBuilder
- func (sb *SqlBuilder) Select(fields ...string) *SqlBuilder
- func (sb *SqlBuilder) ToSql() (string, []interface{})
- func (sb *SqlBuilder) Where() *SqlBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SqlBuilder ¶
func NewSqlBuilder ¶
func NewSqlBuilder() *SqlBuilder
func (*SqlBuilder) And ¶
func (sb *SqlBuilder) And() *SqlBuilder
func (*SqlBuilder) Eq ¶
func (sb *SqlBuilder) Eq(field string, value interface{}) *SqlBuilder
func (*SqlBuilder) EqAny ¶
func (sb *SqlBuilder) EqAny(field string, value interface{}) *SqlBuilder
func (*SqlBuilder) From ¶
func (sb *SqlBuilder) From(table string) *SqlBuilder
func (*SqlBuilder) Ge ¶
func (sb *SqlBuilder) Ge(field string, value interface{}) *SqlBuilder
func (*SqlBuilder) Gt ¶
func (sb *SqlBuilder) Gt(field string, value interface{}) *SqlBuilder
func (*SqlBuilder) Le ¶
func (sb *SqlBuilder) Le(field string, value interface{}) *SqlBuilder
func (*SqlBuilder) LeftJoin ¶
func (sb *SqlBuilder) LeftJoin(table, condition string) *SqlBuilder
func (*SqlBuilder) Limit ¶
func (sb *SqlBuilder) Limit(limit int) *SqlBuilder
func (*SqlBuilder) Lt ¶
func (sb *SqlBuilder) Lt(field string, value interface{}) *SqlBuilder
func (*SqlBuilder) Offset ¶
func (sb *SqlBuilder) Offset(offset int) *SqlBuilder
func (*SqlBuilder) OrderBy ¶
func (sb *SqlBuilder) OrderBy(orderBy map[string]string) *SqlBuilder
func (*SqlBuilder) Select ¶
func (sb *SqlBuilder) Select(fields ...string) *SqlBuilder
func (*SqlBuilder) ToSql ¶
func (sb *SqlBuilder) ToSql() (string, []interface{})
func (*SqlBuilder) Where ¶
func (sb *SqlBuilder) Where() *SqlBuilder
Click to show internal directories.
Click to hide internal directories.