Versions in this module Expand all Collapse all v0 v0.2.0 Oct 16, 2026 v0.1.1 Oct 14, 2026 Changes in this version + type GormTransactional interface + type OrmQuery interface + Query func(args ...any) OrmQueryFunc + type OrmQueryFunc = func(*gorm.DB) *gorm.DB + type OrmRepository struct + func (this *OrmRepository[T, ID]) Delete(object *T) Error + func (this *OrmRepository[T, ID]) DeleteById(id ID) Error + func (this *OrmRepository[T, ID]) FindById(id ID) Optional[*T] + func (this *OrmRepository[T, ID]) PostConstruct(parent any) Error + func (this *OrmRepository[T, ID]) Query(queries ...OrmQueryFunc) *gorm.DB + func (this *OrmRepository[T, ID]) Save(object *T) (*T, Error) + func (this *OrmRepository[T, ID]) SaveAll(objects []*T) ([]*T, Error) + type OrmRepositoryInterface interface + Delete func(object *T) Error + DeleteById func(id K) Error + FindById func(id K) Optional[*T] + Query func(queries ...OrmQueryFunc) *gorm.DB + Save func(object *T) (*T, Error) + SaveAll func(object []*T) ([]*T, Error)