Documentation ¶
Index ¶
- Constants
- func BeginTransaction(ctx context.Context) *gorm.DB
- func DB() *gorm.DB
- func DBFromCtx(ctx context.Context) *gorm.DB
- func EndTransaction(tx *gorm.DB, err error) error
- func GetTransactionFromCtx(ctx context.Context) *gorm.DB
- func WithTransactionCtx(ctx context.Context, tx *gorm.DB) context.Context
- type PROVIDER
- type TransactionCtxKey
Constants ¶
View Source
const (
AppName = "datasource"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TransactionCtxKey ¶
type TransactionCtxKey struct{}
Click to show internal directories.
Click to hide internal directories.