Versions in this module Expand all Collapse all v0 v0.2.0 May 19, 2026 Changes in this version + const ErrDuplicateKey + func ErrorIs(err error, code string) bool + func NewErrUnknown(err error) error + type Model struct + EID string + func ModelFromResource(r resource.Resource) Model + func (d *Model) ID() string + func (d *Model) LID() string + type Repo struct + DB *gormdb.DBClient + func NewRepo(db *gormdb.DBClient, fMapper map[string]string) (*Repo, error) + func (r *Repo) Commit() error + func (r *Repo) CountApply(ctx context.Context, model any, q query.Query) (tx *gorm.DB) + func (r *Repo) CountApplyWithTableName(ctx context.Context, model any, q query.Query, tableName string) (tx *gorm.DB) + func (r *Repo) FMapper() map[string]string + func (r *Repo) PatchApply(ctx context.Context, q query.Query, model any, toPatch map[string]any) (tx *gorm.DB) + func (r *Repo) QueryApply(ctx context.Context, q query.Query, ops ...queryApplyOption) (tx *gorm.DB) + func (r *Repo) QueryApplyWithTableName(ctx context.Context, q query.Query, tableName string, ops ...queryApplyOption) (tx *gorm.DB) + func (r *Repo) Rollback() error + type Timestamps struct + ECreatedAt time.Time + EDeletedAt gorm.DeletedAt + EUpdatedAt time.Time + func TimestampFromTimes(createdAt, updatedAt time.Time, deletedAt *time.Time) Timestamps + func (t *Timestamps) CreatedAt() time.Time + func (t *Timestamps) DeletedAt() *time.Time + func (t *Timestamps) UpdatedAt() time.Time