Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dialect ¶
type Dialect interface { // GetName get dialect's name GetName() string // ShowColumns show columns of specified table ShowColumns(table string) string // ShowTables show tables of database ShowTables() string // Insert Insert(comp *SQLComponent) string // Delete Delete(comp *SQLComponent) string // Update Update(comp *SQLComponent) string // Select Select(comp *SQLComponent) string // GetDelimiter return the delimiter of Dialect. GetDelimiter() string }
Dialect is methods set of different driver.
func GetDialectByDriver ¶
GetDialectByDriver return the Dialect of given driver.
type RawUpdate ¶
type RawUpdate struct { Expression string Args []interface{} }
RawUpdate contains the expression and arguments.
type SQLComponent ¶
type SQLComponent struct { Fields []string Functions []string TableName string Wheres []Where Leftjoins []Join Args []interface{} Order string Offset string Limit string WhereRaws string UpdateRaws []RawUpdate Group string Statement string Values H }
SQLComponent is a sql components set.
Click to show internal directories.
Click to hide internal directories.