Documentation
¶
Index ¶
- Variables
- func AdjustRelation[S interface{ ... }](prev, next []S, addFn, removeFn ChangeRelationFunc[S]) error
- func InTransaction(ctx context.Context, db *pgxpool.Pool, ...) error
- func IsNoRows(err error) bool
- func IsUniqueViolation(err error, name string) bool
- func NotValidEnumType(err error) bool
- func QueryBatchSelect(b *pgx.Batch, sb squirrel.SelectBuilder) error
- func WithTransaction(ctx context.Context, tx pgx.Tx) context.Context
- type ChangeRelationFunc
- type Keyer
- type Queryable
Constants ¶
This section is empty.
Variables ¶
View Source
var StatementBuilder = squirrel.StatementBuilderType(builder.EmptyBuilder).PlaceholderFormat(squirrel.Dollar)
View Source
var TxContextKey contextKey = struct{}{}
Functions ¶
func AdjustRelation ¶
func AdjustRelation[S interface { Keyer comparable }]( prev, next []S, addFn, removeFn ChangeRelationFunc[S], ) error
func InTransaction ¶
func IsUniqueViolation ¶
func NotValidEnumType ¶
func QueryBatchSelect ¶
func QueryBatchSelect(b *pgx.Batch, sb squirrel.SelectBuilder) error
Types ¶
type ChangeRelationFunc ¶
Click to show internal directories.
Click to hide internal directories.