Documentation ¶
Index ¶
- type Orm
- func (r *Orm) Connection(name string) contractsorm.Orm
- func (r *Orm) DB() (*sql.DB, error)
- func (r *Orm) Observe(model any, observer contractsorm.Observer)
- func (r *Orm) Query() contractsorm.Query
- func (r *Orm) Transaction(txFunc func(tx contractsorm.Transaction) error) error
- func (r *Orm) WithContext(ctx context.Context) contractsorm.Orm
- type ServiceProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Orm ¶ added in v1.0.0
type Orm struct {
// contains filtered or unexported fields
}
func (*Orm) Connection ¶ added in v1.0.0
func (r *Orm) Connection(name string) contractsorm.Orm
func (*Orm) Observe ¶ added in v1.11.0
func (r *Orm) Observe(model any, observer contractsorm.Observer)
func (*Orm) Query ¶ added in v1.0.0
func (r *Orm) Query() contractsorm.Query
func (*Orm) Transaction ¶ added in v1.0.0
func (r *Orm) Transaction(txFunc func(tx contractsorm.Transaction) error) error
func (*Orm) WithContext ¶ added in v1.0.0
func (r *Orm) WithContext(ctx context.Context) contractsorm.Orm
type ServiceProvider ¶
type ServiceProvider struct { }
func (*ServiceProvider) Boot ¶
func (database *ServiceProvider) Boot()
func (*ServiceProvider) Register ¶
func (database *ServiceProvider) Register()
Click to show internal directories.
Click to hide internal directories.