Help us shape the future of Go! Take the 2026 Go Developer Survey

bar

package module
v0.0.0-...-082bb71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 6 Imported by: 0

README

bar

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithDB

func ContextWithDB(ctx context.Context, db bun.IDB) context.Context

func DBFromContext

func DBFromContext(ctx context.Context) bun.IDB

func LoaderFor

func LoaderFor[T any]() *modelLoader[T]

func Model

func Model(mod any) *model

func RunInTx

func RunInTx(ctx context.Context, opts *sql.TxOptions, fn func(ctx context.Context) error) error

Types

type Attributes

type Attributes map[string]any

type IOptional

type IOptional interface {
	Nullable()
}

type Optional

type Optional[T any] struct {
	Value *T
	Set   bool
}

func MakeOptional

func MakeOptional[T any](v T) Optional[T]

func (*Optional[T]) Nullable

func (o *Optional[T]) Nullable()

type PKs

type PKs map[string]any

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL