Documentation
¶
Index ¶
- func IsUniqueViolation(err error) bool
- func NewClient(logger logger.LoggerInterface) (*pgxpool.Pool, error)
- func NewClientA(logger logger.LoggerInterface) (*pgxpool.Pool, error)
- func NewClientB(logger logger.LoggerInterface) (*pgxpool.Pool, error)
- func NewClientC(logger logger.LoggerInterface) (*pgxpool.Pool, error)
- func NewClientD(logger logger.LoggerInterface) (*pgxpool.Pool, error)
- func NewClientWithPrefix(logger logger.LoggerInterface, prefix string) (*pgxpool.Pool, error)
- func RunMigrations(log logger.LoggerInterface, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsUniqueViolation ¶
IsUniqueViolation reports whether err is a PostgreSQL unique constraint violation (SQLSTATE 23505).
func NewClientA ¶
func NewClientA(logger logger.LoggerInterface) (*pgxpool.Pool, error)
func NewClientB ¶
func NewClientB(logger logger.LoggerInterface) (*pgxpool.Pool, error)
func NewClientC ¶
func NewClientC(logger logger.LoggerInterface) (*pgxpool.Pool, error)
func NewClientD ¶
func NewClientD(logger logger.LoggerInterface) (*pgxpool.Pool, error)
func NewClientWithPrefix ¶
func RunMigrations ¶
func RunMigrations(log logger.LoggerInterface, path string) error
RunMigrations executes database migrations using goose. path: directory containing migration files.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.