Documentation ¶
Index ¶
- func Close()
- func DebugLog(format string, a ...interface{})
- func ErrorLog(format string, a ...interface{})
- func InfoLog(format string, a ...interface{})
- func Init(maxIdleOpenConns, maxOpenConns int)
- func RegisterDSNTranslator(driverName string, translator func(*url.URL) string) (err error)
- type DSNInfo
- type ExecCtx
- type ProxyConn
- type ProxyDriver
- type ProxyExecer
- type ProxyRows
- type ProxyStmt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DSNInfo ¶
type DSNInfo struct {
// contains filtered or unexported fields
}
func NewDSNInfo ¶
func NewDSNInfo() *DSNInfo
type ProxyDriver ¶
type ProxyDriver struct {
// contains filtered or unexported fields
}
func (*ProxyDriver) Open ¶
func (d *ProxyDriver) Open(name string) (driver.Conn, error)
Only accept DSN common format (http://pear.php.net/manual/en/package.database.db.intro-dsn.php), multiple data sources separated by ';' mysql://[username[:password]@][protocol[(address)]]/dbname[?param1=value1&...¶mN=valueN][#master];mysql://[username[:password]@][protocol[(address)]]/dbname[?param1=value1&...¶mN=valueN][#slave];params:///?asyncwrite=true
type ProxyExecer ¶
type ProxyExecer struct { }
Click to show internal directories.
Click to hide internal directories.