database

package
v0.0.0-...-ca36d45 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *sqlx.DB
)

Functions

func BeginTransaction

func BeginTransaction() (*sqlx.Tx, error)

func CheckHealth

func CheckHealth() error

func CloseDB

func CloseDB() error

func CommitTransaction

func CommitTransaction(tx *sqlx.Tx) error

func InitDB

func InitDB(dbUrl string)

func LoadInitialData

func LoadInitialData() error

func RollbackTransaction

func RollbackTransaction(tx *sqlx.Tx) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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