Documentation
¶
Overview ¶
Package pg utils for work with pg.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsForeignKeyViolationErr ¶
IsForeignKeyViolationErr tells if given error is a postgres foreign key violation error "23503" of a given fk.
func IsUniqueViolationErr ¶
IsUniqueViolationErr tells if given error is a postgres unique violation error "23505".
Types ¶
type TxManager ¶
type TxManager struct {
// contains filtered or unexported fields
}
TxManager pg transaction manager implementation.
func NewTxManager ¶
NewTxManager create instance of TxManager.
Click to show internal directories.
Click to hide internal directories.