Documentation
¶
Index ¶
- type Mysql
- type Option
- func WithConnMaxIdleTime(d time.Duration) Option
- func WithConnMaxLifetime(d time.Duration) Option
- func WithConnectRetryBackoff(initial time.Duration, max time.Duration) Option
- func WithConnectRetryTimeout(timeout time.Duration) Option
- func WithLogger(logger *slog.Logger) Option
- func WithMaxIdleConns(n int) Option
- func WithMaxOpenConns(n int) Option
- func WithQueryLogging(do bool) Option
- func WithQueryTimeout(timeout time.Duration) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mysql ¶
type Mysql struct {
// contains filtered or unexported fields
}
func (*Mysql) IsDuplicateKeyError ¶
func (*Mysql) IsNotFoundError ¶
type Option ¶
type Option func(w *Mysql)
func WithConnMaxIdleTime ¶
func WithConnMaxLifetime ¶
func WithConnectRetryBackoff ¶
func WithConnectRetryTimeout ¶
func WithLogger ¶
func WithMaxIdleConns ¶
func WithMaxOpenConns ¶
func WithQueryLogging ¶
func WithQueryTimeout ¶
Click to show internal directories.
Click to hide internal directories.