database

package
v0.0.0-...-57c0d75 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *gorm.DB

	DBErr  error
	TestDB *gorm.DB
)

Functions

func DBConnection

func DBConnection(masterDSN, replicaDSN, testDSN string) error

DBConnection create database connection

func GetDB

func GetDB() *gorm.DB

GetDB connection

func GetDBError

func GetDBError() error

GetDBError connection error

func GetTestDB

func GetTestDB() *gorm.DB

GetTestDB connection

func GetTestDBError

func GetTestDBError() error

GetTestDBError connection error

Types

This section is empty.

Jump to

Keyboard shortcuts

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