Documentation
¶
Index ¶
- Constants
- Variables
- func ClearCaches()
- type PgxDriver
- type PgxDriverDialect
- func (p PgxDriverDialect) GetAllowedOnConnectionMethodNames() []string
- func (p PgxDriverDialect) IsClosed(conn driver.Conn) bool
- func (p PgxDriverDialect) IsDialect(driver driver.Driver) bool
- func (p PgxDriverDialect) IsDriverRegistered(drivers map[string]driver.Driver) bool
- func (p PgxDriverDialect) IsLoginError(err error) bool
- func (p PgxDriverDialect) IsNetworkError(err error) bool
- func (p PgxDriverDialect) PrepareDsn(properties map[string]string, hostInfo *host_info_util.HostInfo) string
- func (p PgxDriverDialect) RegisterDriver()
- type PgxErrorHandler
Constants ¶
View Source
const ( PGX_DRIVER_CLASS_NAME = "stdlib.Driver" PGX_DRIVER_REGISTRATION_NAME = "pgx" PGX_V5_DRIVER_REGISTRATION_NAME = "pgx/v5" )
Variables ¶
View Source
var AccessErrors = []string{
"28P01",
"28000",
}
View Source
var NetworkErrors = []string{
"53",
"57P01",
"57P02",
"57P03",
"58",
"08",
"99",
"F0",
"XX",
}
View Source
var PgNetworkErrorMessages = []string{
"unexpected EOF",
"use of closed network connection",
"broken pipe",
"bad connection",
}
Functions ¶
func ClearCaches ¶
func ClearCaches()
Types ¶
type PgxDriverDialect ¶
type PgxDriverDialect struct {
// contains filtered or unexported fields
}
func NewPgxDriverDialect ¶
func NewPgxDriverDialect() *PgxDriverDialect
func (PgxDriverDialect) GetAllowedOnConnectionMethodNames ¶
func (p PgxDriverDialect) GetAllowedOnConnectionMethodNames() []string
func (PgxDriverDialect) IsDriverRegistered ¶
func (p PgxDriverDialect) IsDriverRegistered(drivers map[string]driver.Driver) bool
func (PgxDriverDialect) IsLoginError ¶
func (p PgxDriverDialect) IsLoginError(err error) bool
func (PgxDriverDialect) IsNetworkError ¶
func (p PgxDriverDialect) IsNetworkError(err error) bool
func (PgxDriverDialect) PrepareDsn ¶
func (p PgxDriverDialect) PrepareDsn(properties map[string]string, hostInfo *host_info_util.HostInfo) string
func (PgxDriverDialect) RegisterDriver ¶
func (p PgxDriverDialect) RegisterDriver()
type PgxErrorHandler ¶
type PgxErrorHandler struct { }
func (*PgxErrorHandler) IsLoginError ¶
func (p *PgxErrorHandler) IsLoginError(err error) bool
func (*PgxErrorHandler) IsNetworkError ¶
func (p *PgxErrorHandler) IsNetworkError(err error) bool
Click to show internal directories.
Click to hide internal directories.