tx

package
v0.0.0-...-061a1bd Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB(cfg config.PostgresConfig) *gorm.DB

opening connection with database

Types

type TX

type TX interface {
	Commit() error
	Rollback() error
	AutoCR(error) error
	GetConnection() *gorm.DB
}

type TXFactory

type TXFactory interface {
	NewTX() TX
}

func NewTXFactory

func NewTXFactory(isMock bool, db *gorm.DB) TXFactory

Jump to

Keyboard shortcuts

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