Documentation
¶
Index ¶
- Constants
- type Condition
- func (cond *Condition) Empty()
- func (cond *Condition) GetExp() []conditionExp
- func (cond *Condition) Not(query interface{}, values ...interface{})
- func (cond *Condition) Or(query interface{}, values ...interface{})
- func (cond *Condition) SetExp(exp []conditionExp)
- func (cond *Condition) Where(query interface{}, values ...interface{})
- type DB
- type Exp
- type Sql
- func (sql *Sql) BuildDelete() string
- func (sql *Sql) BuildInsert() string
- func (sql *Sql) BuildSelect() string
- func (sql *Sql) BuildUpdate() string
- func (sql *Sql) Field(fields ...string) *Sql
- func (sql *Sql) FilterRows(rows []map[string]interface{}) *Sql
- func (sql *Sql) GetModelStruct() model.ModelStruct
- func (sql *Sql) GetRows() []map[string]interface{}
- func (sql *Sql) Group(group string) *Sql
- func (sql *Sql) HasCondition() bool
- func (sql *Sql) Having(having string) *Sql
- func (sql *Sql) Join(join string) *Sql
- func (sql *Sql) Limit(limit string) *Sql
- func (sql *Sql) Offset(offset string) *Sql
- func (sql *Sql) Omit(omit ...string) *Sql
- func (sql *Sql) Option(option string) *Sql
- func (sql *Sql) Order(order string) *Sql
- func (sql *Sql) RightJoin(join string) *Sql
- func (sql *Sql) Rows(rows []map[string]interface{}) *Sql
- func (sql *Sql) Select(column string) *Sql
- func (sql *Sql) SetModelStruct(modelStruct model.ModelStruct)
- func (sql *Sql) SetTable(tableName string)
- func (sql *Sql) Union(sql2 *Sql) *Sql
- func (sql *Sql) UpdateSet(updateSet string) *Sql
- func (sql *Sql) WhereSql() string
Constants ¶
View Source
const ( LogicAnd = uint8(1) LogicOr = uint8(2) LogicAndNot = uint8(3) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sql ¶
type Sql struct { Cond Condition // contains filtered or unexported fields }
struct for build SQL
func (*Sql) BuildDelete ¶
Build SQL statement for delete record from table
func (*Sql) FilterRows ¶
filter update columns
func (*Sql) GetModelStruct ¶
func (sql *Sql) GetModelStruct() model.ModelStruct
func (*Sql) SetModelStruct ¶
func (sql *Sql) SetModelStruct(modelStruct model.ModelStruct)
set model
Click to show internal directories.
Click to hide internal directories.