Documentation ¶
Index ¶
- func DB(names ...string) gdb.DB
- type Query
- func (query *Query) And(where string, args ...interface{}) *Query
- func (query *Query) AndDefault(defaultWhere, where string, args ...interface{})
- func (query *Query) Append(sql string) string
- func (query *Query) From(from ...interface{}) *Query
- func (query *Query) GroupBy(sql string) string
- func (query *Query) OrderBy(sql string) string
- func (query *Query) QueryValue() *g.Var
- func (query *Query) Select(fields string) *Query
- func (query *Query) ToList() g.List
- func (query *Query) ToMap() g.Map
- func (query *Query) ToSQL() (string, []interface{})
- func (query *Query) ToStruct(objPointer interface{}) error
- func (query *Query) ToStructs(objPointerSlice interface{}) error
- func (query *Query) Where(where string, args ...interface{}) *Query
- type QueryDao
- func (dao *QueryDao) Condition(sql string, objects []interface{}, data interface{}, ...) (string, []interface{})
- func (dao *QueryDao) CreateQuery(sql string, args ...interface{}) *Query
- func (dao *QueryDao) Query(query string, args ...interface{}) g.List
- func (dao *QueryDao) QueryEntity(result interface{}, query string, args ...interface{})
- func (dao *QueryDao) QueryOne(query string, args ...interface{}) g.Map
- func (dao *QueryDao) QueryStruct(objPointer interface{}, query string, args ...interface{}) error
- func (dao *QueryDao) QueryStructs(objPointerSlice interface{}, query string, args ...interface{}) error
- func (dao *QueryDao) QueryValue(query string, args ...interface{}) *g.Var
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Query ¶
type Query struct { Sql string Args []interface{} // contains filtered or unexported fields }
func (*Query) AndDefault ¶
func (*Query) QueryValue ¶
type QueryDao ¶
func (*QueryDao) CreateQuery ¶
func (*QueryDao) QueryEntity ¶
func (*QueryDao) QueryStruct ¶
func (*QueryDao) QueryStructs ¶
Click to show internal directories.
Click to hide internal directories.