db

package
v0.0.0-...-951447a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient() *gorm.DB

func NewClient

func NewClient(config *conf.Config) (*gorm.DB, error)

func OpenMySql

func OpenMySql(dsn string, gormConfig *gorm.Config) (*gorm.DB, error)

func OpenPostgreSQL

func OpenPostgreSQL(dsn string, gormConfig *gorm.Config) (*gorm.DB, error)

func OpenSqlServer

func OpenSqlServer(dsn string, gormConfig *gorm.Config) (*gorm.DB, error)

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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