Documentation ¶
Index ¶
- Variables
- func Get(driver string) (specs.Driver, error)
- func NewField() specs.DriverField
- func NewJoin() specs.DriverJoin
- func NewLimit() specs.DriverLimit
- func NewRequiredFieldJoinErr(fields []string) specs.ErrRequiredFieldJoin
- func NewUnknownFieldsErr(fields []string) specs.ErrUnknownFields
- func NewUnknownOperatorErr(operator string) specs.ErrUnknownOperator
- func NewWhere() specs.DriverWhere
- type Mysql
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDriverNotFound = errors.New("driver not found")
ErrDriverNotFound is an error when the driver is not found.
View Source
var RegisteredDriver = map[string]func() specs.Driver{ "mysql": func() specs.Driver { return new(Mysql) }, }
RegisteredDriver is a map of registered driver, in test mode, this map will be replaced.
Functions ¶
func NewJoin ¶
func NewJoin() specs.DriverJoin
func NewLimit ¶
func NewLimit() specs.DriverLimit
func NewRequiredFieldJoinErr ¶
func NewRequiredFieldJoinErr(fields []string) specs.ErrRequiredFieldJoin
func NewUnknownFieldsErr ¶
func NewUnknownFieldsErr(fields []string) specs.ErrUnknownFields
func NewUnknownOperatorErr ¶
func NewUnknownOperatorErr(operator string) specs.ErrUnknownOperator
func NewWhere ¶
func NewWhere() specs.DriverWhere
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.