db

package
v1.0.0-...-a0f063d Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connection

func Connection(name string) orm.IOrm

func DB

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

func Gorm

func Gorm() *gorm.DB

func GormTransaction

func GormTransaction(txFunc func(tx *gorm.DB) error) error

func Query

func Query() orm.DB

func Transaction

func Transaction(txFunc func(tx orm.Transaction) error) error

func WithContext

func WithContext(ctx context.Context) orm.IOrm

Types

This section is empty.

Jump to

Keyboard shortcuts

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