Versions in this module Expand all Collapse all v0 v0.2.0 Mar 18, 2026 Changes in this version + func RunInTx(ctx context.Context, opts *sql.TxOptions, fn func(context.Context) error) error v0.1.0 Mar 18, 2026 Changes in this version + func ContextWithDB(ctx context.Context, db bun.IDB) context.Context + func DBFromContext(ctx context.Context) bun.IDB + type Model struct + func ModelFor[T any]() Model[T] + func (m Model[T]) All(ctx context.Context) (models []T, err error) + func (m Model[T]) Create(ctx context.Context, values ...Values) (*T, error) + func (m Model[T]) Delete(ctx context.Context) error + func (m Model[T]) First(ctx context.Context) (*T, error) + func (m Model[T]) Limit(n int) Model[T] + func (m Model[T]) Update(ctx context.Context, values ...Values) (*T, error) + func (m Model[T]) Where(values Values) Model[T] + type Values map[string]any + func (values Values) InsertQuery(iq *bun.InsertQuery) *bun.InsertQuery + func (values Values) QueryBuilder(qb bun.QueryBuilder) bun.QueryBuilder + func (values Values) UpdateQuery(uq *bun.UpdateQuery) *bun.UpdateQuery