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.
Click to show internal directories.
Click to hide internal directories.