Documentation ¶
Index ¶
Constants ¶
View Source
const ( DriverNameMySql = "mysql" DriverNamePostgres = "postgres" DriverNameSqlite3 = "sqlite3" DriverNameSqlServer = "sqlserver" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(config Config) *Connection
type ConnectionManager ¶
type ConnectionManager struct {
// contains filtered or unexported fields
}
ConnectionManager 连接管理器
func DefaultConnectionManager ¶
func DefaultConnectionManager() *ConnectionManager
DefaultConnectionManager 默认连接管理器
func NewConnectionManager ¶
func NewConnectionManager() *ConnectionManager
NewConnectionManager 创建连接管理器
func (*ConnectionManager) Add ¶
func (m *ConnectionManager) Add(name string, con *Connection)
Add 添加连接
func (*ConnectionManager) Exist ¶
func (m *ConnectionManager) Exist(name string) bool
Exist 判断连接是否存在
Click to show internal directories.
Click to hide internal directories.