Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { Username string // 数据库用户名 Password string // 数据库密码 Host string // 数据库地址 Port string // 数据库端口 Database string // 库名 Prefix string // 表前缀 Charset string // 字符集 Driver string // 数据库驱动 mysql/sqlite/oracle/mssql/postgres EnableQueryLog bool // 是否开启sql日志 SetMaxOpenConns int // (连接池)最大打开的连接数,默认值为0表示不限制 SetMaxIdleConns int // (连接池)闲置的连接数 }
type ConnectionBase ¶
type ConnectionBase struct {
gorose.Connection
}
func Instance ¶
func Instance(args ...interface{}) *ConnectionBase
Click to show internal directories.
Click to hide internal directories.