Documentation
¶
Index ¶
Constants ¶
View Source
const ( DriverMySQL = "mysql" DriverSqlite3 = "sqlite3" DriverPostgreSQL = "postgresql" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine 定义 ORM 引擎的数据结构
func (*Engine) NewSession ¶
NewSession 新建一个会话
func (*Engine) SetMaxIdleConns ¶
func (*Engine) SetMaxOpenConns ¶
Click to show internal directories.
Click to hide internal directories.