Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrorEmptyParams occur when param is empty ErrorEmptyParams = errors.New("params should not be empty") )
Functions ¶
This section is empty.
Types ¶
type Insert ¶
type Insert interface { AddColumns(fields ...string) error AddValues(values ...interface{}) error ClearValues() error String() string }
Insert used to express insert sql
type Select ¶
type Select interface { sql.Wherer sql.Haver Select(fields ...string) Choice(field string) From(tableNames ...string) Join(table string, conditions ...string) LeftJoin(table string, conditions ...string) RightJoin(table string, conditions ...string) FullJoin(table string, conditions ...string) Orderby(field string, desc bool) GroupBy(fields ...string) BeginWhere() EndWhere() BeginHaving() EndHaving() Limit(count int) Offset(offset int) String() string }
Select used to express select sql
Click to show internal directories.
Click to hide internal directories.