database

package
v0.0.0-...-4ca5139 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGormInstance

func NewGormInstance(connection string) (*gorm.DB, error)

DEPRECATED: use gorm.New()

Types

type Orm

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

func NewOrm

func NewOrm(ctx context.Context) *Orm

func (*Orm) Connection

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

func (*Orm) DB

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

func (*Orm) Query

func (r *Orm) Query() contractsorm.Query

func (*Orm) Transaction

func (r *Orm) Transaction(txFunc func(tx contractsorm.Transaction) error) error

func (*Orm) WithContext

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