Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterConn ¶
func RegisterConn(c *Conn)
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func NewConn ¶
func NewConn(opts ...ConnOption) (*Conn, error)
func (*Conn) DataSourceName ¶
func (*Conn) DriverName ¶
func (*Conn) RegisterStmt ¶
type ConnOption ¶
type ConnOption func(*Conn)
func WithConnCloseError ¶
func WithConnCloseError(err error) ConnOption
func WithConnLogger ¶
func WithConnLogger(logger Logger) ConnOption
func WithConnName ¶
func WithConnName(name string) ConnOption
func WithConnOpenError ¶
func WithConnOpenError(err error) ConnOption
func WithConnPingError ¶
func WithConnPingError(err error) ConnOption
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
func (*Result) LastInsertId ¶
func (*Result) RowsAffected ¶
type Rows ¶
type Rows struct {
// contains filtered or unexported fields
}
func NewRows ¶
func NewRows(opts ...RowsOptions) *Rows
type RowsOptions ¶
type RowsOptions func(*Rows)
func WithRowsColumns ¶
func WithRowsColumns(columns ...string) RowsOptions
func WithRowsValues ¶
func WithRowsValues(values ...*Row) RowsOptions
type StdoutLogger ¶
type StdoutLogger struct{}
func NewStdoutLogger ¶
func NewStdoutLogger() *StdoutLogger
func (*StdoutLogger) Logf ¶
func (sl *StdoutLogger) Logf(msg string, args ...interface{})
type Stmt ¶
type Stmt struct {
// contains filtered or unexported fields
}
func NewStmt ¶
func NewStmt(opts ...StmtOption) *Stmt
type StmtOption ¶
type StmtOption func(*Stmt)
func WithStmtCloseError ¶
func WithStmtCloseError(err error) StmtOption
func WithStmtExecError ¶
func WithStmtExecError(err error) StmtOption
func WithStmtExecResult ¶
func WithStmtExecResult(result *Result) StmtOption
func WithStmtPrepareError ¶
func WithStmtPrepareError(err error) StmtOption
func WithStmtQueryError ¶
func WithStmtQueryError(err error) StmtOption
func WithStmtQueryRows ¶
func WithStmtQueryRows(rows *Rows) StmtOption
Click to show internal directories.
Click to hide internal directories.