database

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 11 Imported by: 4

Documentation

Index

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 NewOrm added in v1.0.0

func NewOrm(ctx context.Context) *Orm

func (*Orm) Connection added in v1.0.0

func (r *Orm) Connection(name string) contractsorm.Orm

func (*Orm) DB added in v1.8.0

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

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()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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