Versions in this module Expand all Collapse all v0 v0.2.0 Oct 28, 2026 Changes in this version + type Database interface + Count func(ctx context.Context, m Model, expr clause.Expression) (int64, error) + Create func(ctx context.Context, m Model) error + Delete func(ctx context.Context, m Model) error + DeleteAll func(ctx context.Context, m Model) error + DeleteMany func(ctx context.Context, m Model, expr clause.Expression) error + DeleteOne func(ctx context.Context, m Model, expr clause.Expression) error + FindMany func(ctx context.Context, model Model, expr clause.Expression, ...) ([]Model, error) + FindOne func(ctx context.Context, model Model, expr clause.Expression) (Model, error) + Transaction func(ctx context.Context, fn TransactionFunc) error + Update func(ctx context.Context, m Model) error + UpdateMany func(ctx context.Context, m Model, expr clause.Expression, updates M) error + UpdateOne func(ctx context.Context, m Model, expr clause.Expression, updates M) error + type DatabaseName string + const Postgres + const SQLite + type Environment string + const EnvDev + const EnvProduction + type Extensible interface + Extras func() M + SetExtra func(column string, value any) + type ForeignKeyChecker interface + CheckForeignKeys func(ctx context.Context) error + type IdentityResolver struct + func (IdentityResolver) Columns(string) []string + func (IdentityResolver) Resolve(canonical string) string + func (IdentityResolver) ResolveColumn(_ string, canonical string) string + type KeyValueStorage interface + Delete func(ctx context.Context, key string) error + Get func(ctx context.Context, key string) (string, error) + Set func(ctx context.Context, key string, value string, ttl int) error + type M map[string]any + type Model interface + New func() Model + PrimaryKeyField func() any + PrimaryKeyName func() string + SchemaName func() string + type Order struct + Direction OrderDirection + Field string + type OrderDirection string + const Asc + const Desc + type QueryOptions struct + Distinct bool + Limit int + Offset int + OrderBy Order + Select []string + type SchemaResolver interface + Columns func(canonicalTable string) []string + Resolve func(canonicalName string) string + ResolveColumn func(canonicalTable, canonicalColumn string) string + type Serializable interface + FromMap func(map[string]any) error + ToMap func() (map[string]any, error) + type TransactionChecker interface + CheckTransactions func(ctx context.Context) error + type TransactionFunc func(ctx context.Context, tx Database) (any, error) + type UniqueKey struct + Columns []string + Index string + TakenCode string + type UniqueKeyResolver interface + UniqueKeys func(canonicalTable string) []UniqueKey