Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDBTimeout = errors.New("database ping timeout")
)
Functions ¶
Types ¶
type Config ¶
type Config struct { Type Type Host string Port string User string Password string DBName string // Query options SSLMode string SSLCA string SSLCert string SSLKey string SSLSNI string ConnectTimeout uint64 }
Config holds database connection config info.
type StmtPreparor ¶
type StmtPreparor interface {
PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
}
StmtPreparor is an abstract type that should be able to prepare database statements.
Directories
¶
Path | Synopsis |
---|---|
Package mockdb is a generated GoMock package.
|
Package mockdb is a generated GoMock package. |
Package mockrows is a generated GoMock package.
|
Package mockrows is a generated GoMock package. |
Package mocktx is a generated GoMock package.
|
Package mocktx is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.