Documentation ¶
Index ¶
- type Config
- type Engine
- func (e *Engine) XCount() (int, error)
- func (e *Engine) XCount64() (int64, error)
- func (e *Engine) XMapFirst() ([]map[string]interface{}, error)
- func (e *Engine) XMapList() ([]map[string]interface{}, error)
- func (e *Engine) XModel(value interface{}) *Engine
- func (e *Engine) XOrder(sort string) *Engine
- func (e *Engine) XWhere(query interface{}, args ...interface{}) *Engine
- func (e *Engine) XWithPage(page, pageSize int) *Engine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Driver string `yaml:"driver"` Url string `yaml:"url"` IdleConn int `yaml:"idle_conn"` OpenConn int `yaml:"open_conn"` MaxLifetime int `yaml:"max_lifetime"` }
数据库配置
Click to show internal directories.
Click to hide internal directories.