Versions in this module Expand all Collapse all v1 v1.0.1 Apr 19, 2024 Changes in this version + const BindingOrm + const BindingSeeder + type FactoryImpl struct + func NewFactoryImpl(query ormcontract.Query) *FactoryImpl + func (f *FactoryImpl) Count(count int) ormcontract.Factory + func (f *FactoryImpl) Create(value any, attributes ...map[string]any) error + func (f *FactoryImpl) CreateQuietly(value any, attributes ...map[string]any) error + func (f *FactoryImpl) Make(value any, attributes ...map[string]any) error + type OrmImpl struct + func InitializeOrm(ctx context.Context, config2 config.Config, connection string) (*OrmImpl, error) + func NewOrmImpl(ctx context.Context, config config.Config, connection string, ...) (*OrmImpl, error) + func (r *OrmImpl) Connection(name string) ormcontract.Orm + func (r *OrmImpl) DB() (*sql.DB, error) + func (r *OrmImpl) Factory() ormcontract.Factory + func (r *OrmImpl) Observe(model any, observer ormcontract.Observer) + func (r *OrmImpl) Query() ormcontract.Query + func (r *OrmImpl) Transaction(txFunc func(tx ormcontract.Transaction) error) error + func (r *OrmImpl) WithContext(ctx context.Context) ormcontract.Orm + type SeederFacade struct + Called []string + Seeders []seeder.Seeder + func NewSeederFacade() *SeederFacade + func (s *SeederFacade) Call(seeders []seeder.Seeder) error + func (s *SeederFacade) CallOnce(seeders []seeder.Seeder) error + func (s *SeederFacade) GetSeeder(name string) seeder.Seeder + func (s *SeederFacade) GetSeeders() []seeder.Seeder + func (s *SeederFacade) Register(seeders []seeder.Seeder) + type ServiceProvider struct + func (database *ServiceProvider) Boot(app foundation.Application) + func (database *ServiceProvider) Register(app foundation.Application)