Documentation ¶
Index ¶
- Constants
- type OrmImpl
- func (r *OrmImpl) Connection(name string) ormcontract.Orm
- func (r *OrmImpl) DB() (*sql.DB, error)
- 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 ServiceProvider
Constants ¶
View Source
const Binding = "goravel.orm"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrmImpl ¶ added in v1.12.0
type OrmImpl struct {
// contains filtered or unexported fields
}
func InitializeOrm ¶ added in v1.12.0
func NewOrmImpl ¶ added in v1.12.0
func (*OrmImpl) Connection ¶ added in v1.12.0
func (r *OrmImpl) Connection(name string) ormcontract.Orm
func (*OrmImpl) Observe ¶ added in v1.12.0
func (r *OrmImpl) Observe(model any, observer ormcontract.Observer)
func (*OrmImpl) Query ¶ added in v1.12.0
func (r *OrmImpl) Query() ormcontract.Query
func (*OrmImpl) Transaction ¶ added in v1.12.0
func (r *OrmImpl) Transaction(txFunc func(tx ormcontract.Transaction) error) error
func (*OrmImpl) WithContext ¶ added in v1.12.0
func (r *OrmImpl) WithContext(ctx context.Context) ormcontract.Orm
type ServiceProvider ¶
type ServiceProvider struct { }
func (*ServiceProvider) Boot ¶
func (database *ServiceProvider) Boot(app foundation.Application)
func (*ServiceProvider) Register ¶
func (database *ServiceProvider) Register(app foundation.Application)
Click to show internal directories.
Click to hide internal directories.