Documentation
¶
Index ¶
- func IsInvalidTextRepresentation(err error) bool
- func IsUniqueViolation(err error, constraint ...string) bool
- func RunInTx(db BeginTxer, opts *TxOptions, fn func(*sql.Tx) error) error
- func RunInTxContext(ctx context.Context, db BeginTxer, opts *TxOptions, fn func(*sql.Tx) error) error
- type BeginTxer
- type Time
- type TxOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidTextRepresentation ¶ added in v0.2.2
IsInvalidTextRepresentation checks is error an invalid_text_representation
func IsUniqueViolation ¶
IsUniqueViolation checks is error an unique_violation with given constraint, constraint can be empty to ignore constraint name checks
Types ¶
Click to show internal directories.
Click to hide internal directories.