database

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const Binding = "goravel.orm"

Variables

This section is empty.

Functions

This section is empty.

Types

type OrmImpl

type OrmImpl struct {
	// contains filtered or unexported fields
}

func InitializeOrm

func InitializeOrm(ctx context.Context, config2 config.Config, connection string) (*OrmImpl, error)

func NewOrmImpl

func NewOrmImpl(ctx context.Context, config config.Config, connection string, query ormcontract.Query) (*OrmImpl, error)

func (*OrmImpl) Connection

func (r *OrmImpl) Connection(name string) ormcontract.Orm

func (*OrmImpl) DB

func (r *OrmImpl) DB() (*sql.DB, error)

func (*OrmImpl) Observe

func (r *OrmImpl) Observe(model any, observer ormcontract.Observer)

func (*OrmImpl) Query

func (r *OrmImpl) Query() ormcontract.Query

func (*OrmImpl) Transaction

func (r *OrmImpl) Transaction(txFunc func(tx ormcontract.Transaction) error) error

func (*OrmImpl) WithContext

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL