datasource

package
v1.9.28 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DATASOURCE = "datasource"
)

Variables

This section is empty.

Functions

func DB

func DB(ctx context.Context) *gorm.DB

func EndTransaction added in v1.9.28

func EndTransaction(tx *gorm.DB, err error) error

func GetTransactionFromCtx added in v1.9.28

func GetTransactionFromCtx(ctx context.Context) *gorm.DB

func WithTransactionCtx added in v1.9.28

func WithTransactionCtx(ctx context.Context, tx *gorm.DB) context.Context

Types

type PROVIDER

type PROVIDER string
const (
	PROVIDER_MYSQL PROVIDER = "mysql"
)

type TransactionCtxKey added in v1.9.28

type TransactionCtxKey struct{}

Jump to

Keyboard shortcuts

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