datasource

package
v0.0.0-...-1225d9a Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "datasource"
)

Variables

This section is empty.

Functions

func DB

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

func EndTransaction

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

func GetTransactionFromCtx

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

func WithTransactionCtx

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

Types

type PROVIDER

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

type TransactionCtxKey

type TransactionCtxKey struct{}

Jump to

Keyboard shortcuts

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