Documentation
¶
Index ¶
Constants ¶
View Source
const ( Or = `OR` And = `AND` )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Query ¶
type Query interface {
// Select Select表达式
Select(columns ...string) Query
// From From表达式
From(table string) Query
// Where Where表达式
Where(where Where) Query
// And 附加And where
And(condition Condition) Query
// Or 附加Or where
Or(condition Condition) Query
// Group Group表达式
Group(fields ...string) Query
// Having Having表达式
Having(having string) Query
// Order Order表达式
Order(orders ...string) Query
// Offset Offset表达式
Offset(offset int64) Query
// Limit Limit表达式
Limit(limit int64) Query
// Sql 生成sql
Sql(arguments *[]interface{}) (sql string)
// Close 释放Query
Close()
}
Query Query对象
Click to show internal directories.
Click to hide internal directories.