Documentation ¶
Index ¶
- func Union(queries ...*Q) (string, error)
- type IModel
- type Q
- func (q *Q) Alias(alias string) *Q
- func (q *Q) Count(name, as string) *Q
- func (q *Q) Field(name string) *Q
- func (q *Q) FieldAs(name, as string) *Q
- func (q *Q) FieldRaw(fieldStr, as string) *Q
- func (q *Q) Fields(fields ...string) *Q
- func (q *Q) Limit(limit, offset int64) *Q
- func (q *Q) OrderBy(col, dir string) *Q
- func (q *Q) Set(fieldName string, value interface{}) *Q
- func (q *Q) String() (string, error)
- func (q *Q) Sum(name, as string) *Q
- func (q *Q) Where(args ...WherePart) *Q
- type QueryType
- type Where
- type WherePart
- func And(args ...WherePart) WherePart
- func Between(fieldName string, from, to interface{}) WherePart
- func CommentID(args ...interface{}) WherePart
- func EQ(fieldName string, value interface{}) WherePart
- func EQF(fieldName1, fieldName2 string) WherePart
- func Exists(clause *Q) WherePart
- func GT(fieldName string, value interface{}) WherePart
- func GTOE(fieldName string, value interface{}) WherePart
- func IN(fieldName string, values ...interface{}) WherePart
- func LT(fieldName string, value interface{}) WherePart
- func LTOE(fieldName string, value interface{}) WherePart
- func NE(fieldName string, value interface{}) WherePart
- func NewWherePart(whereType WhereType, fieldName string, values []interface{}) WherePart
- func Or(args ...WherePart) WherePart
- func PE() WherePart
- func PS() WherePart
- type WhereType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IModel ¶
type IModel interface { Table_Name() string Table_Columns() []string Table_PrimaryKey() string Table_PrimaryKey_Value() int64 Table_InsertColumns() []string Table_UpdateColumns() []string Table_Column_Types() map[string]string String() string Update() string Create() string Destroy() string FromID() string }
type WherePart ¶
type WherePart struct {
// contains filtered or unexported fields
}
func NewWherePart ¶
Click to show internal directories.
Click to hide internal directories.