Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound is returned for get ops with no results ErrNotFound = trail.NewErrorNotFound("the requested item does not exist") // ErrUnique is return for write ops that violate unique constraint ErrUnique = trail.NewErrorConflict("an item already exists matching your request") // ErrBadValue is returned for encoding errors ErrBadValue = trail.NewError("bad value") )
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(conf *ProviderConfig)
Option A sql db option
func WithConnectTimeout ¶
WithConnectTimeout configure pg with custom connect timeout
func WithMaxConnLifetime ¶
WithMaxConnLifetime configure pg with custom max connection lifetime
func WithMaxConns ¶
WithMaxConns configure pg with custom max connections
Click to show internal directories.
Click to hide internal directories.