Documentation ¶
Index ¶
- Variables
- func From[T models.Model]() *selects.Builder[T]
- func InitializeRelationships(v any) error
- func Load(tx *sqlx.Tx, v any, relation string) error
- func New[T models.Model]() *selects.Builder[T]
- func NewEmpty[T models.Model]() *selects.Builder[T]
- func Save(tx *sqlx.Tx, v models.Model) error
- func SaveContext(ctx context.Context, tx *sqlx.Tx, v models.Model) error
- type BaseModel
- type Model
- type Scope
- type ScopeFunc
- type Scoper
Constants ¶
This section is empty.
Variables ¶
View Source
var SoftDeletes = &selects.Scope{ Name: "soft-deletes", Apply: func(b *selects.SubBuilder) *selects.SubBuilder { return b.Where("deleted_at", "=", nil) }, }
Functions ¶
func InitializeRelationships ¶ added in v0.11.4
Types ¶
Click to show internal directories.
Click to hide internal directories.