Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandTag ¶
type CommandTag interface {
RowsAffected() int64
}
CommandTag is a command's result interface
type ConnConfig ¶
ConnConfig is a database connection config
type ConnPool ¶
type ConnPool interface { io.Closer QueryRow(context.Context, string, ...interface{}) Row Query(context.Context, string, ...interface{}) (Rows, Error) Exec(context.Context, string, ...interface{}) (CommandTag, Error) CopyFrom([]string, []string, interface{}) error }
ConnPool represents database pool interface
type Error ¶
type Error interface { Error() string Message() string Hint() string IsCode(string) bool NoRows() bool }
Error is a database error interface
type PoolConfig ¶
type PoolConfig struct { ConnConfig MaxConnections int }
PoolConfig is a database connection config
Click to show internal directories.
Click to hide internal directories.