Versions in this module Expand all Collapse all v1 v1.1.0 Apr 5, 2026 Changes in this version + const DefaultCreatedAtCol + const DefaultFlagsCol + const DefaultIDCol + const DefaultUpdatedAtCol + const TxKey + func InTx(ctx context.Context, client *bun.DB, fn func(ctx context.Context) error) error + func IsConstraintError(err error) bool + func IsNotFoundError(err error) bool + func Map[T any, R any](collection []T, iteratee func(item T, index int) R) []R + func OrderAsc(col string) string + func OrderDesc(col string) string + func ToPtr[T any](v T) *T + func TxFromContext(ctx context.Context) *bun.Tx + func TxToContext(ctx context.Context, tx *bun.Tx) context.Context + type Order map[int]string + type Querier interface + NewDeleteQuery func(ctx context.Context) *bun.DeleteQuery + NewInsertQuery func(ctx context.Context) *bun.InsertQuery + NewSelectQuery func(ctx context.Context) *bun.SelectQuery + NewUpdateQuery func(ctx context.Context) *bun.UpdateQuery + func NewQuerier(c *bun.DB) Querier + type Selector func(*bun.SelectQuery) *bun.SelectQuery + func AndGroup(selectors ...Selector) Selector + func Apply(selectors ...Selector) Selector + func ApplyIf(cond bool, selectors ...Selector) Selector + func Or(selectors ...Selector) Selector + func OrGroup(selectors ...Selector) Selector + func UseWhere(where Where) Selector + func WhereAfter(col string, t time.Time) Selector + func WhereBefore(col string, t time.Time) Selector + func WhereBegins(col string, substr string) Selector + func WhereContains(col string, substr string) Selector + func WhereDistinctOn(col string) Selector + func WhereEnds(col string, substr string) Selector + func WhereEqual(col string, value any) Selector + func WhereIn(col string, values any) Selector + func WhereJsonbEqual(col string, field string, value any) Selector + func WhereJsonbObjectsArrayKeyValueEqual(col string, key, field string, value any) Selector + func WhereJsonbPathEqual(col string, path []string, value any) Selector + func WhereJsonbPathObjectsArrayKeyValueEqual(col string, path []string, field string, value any) Selector + func WhereNotEqual(col string, value any) Selector + func WhereNotIn(col string, values any) Selector + func WhereNotNull(col string) Selector + func WhereNull(col string) Selector + type Where struct + CreatedAfter *int64 + CreatedAtCol string + CreatedBefore *int64 + ExcludeColumns []string + FlagsCol string + HasFlags []int + HasNotFlags []int + ID string + IDs []string + Limit *int + NotInIDs []string + Offset *int + OnlyDeleted bool + Order Order + SelectColumns []string + SortBy int + SortDesc bool + UpdatedAfter *int64 + UpdatedAtCol string + UpdatedBefore *int64 + WithDeleted bool + func (w *Where) Select(q *bun.SelectQuery) *bun.SelectQuery + func (w *Where) Where(q *bun.SelectQuery) *bun.SelectQuery