database

package
v0.0.0-...-2b84898 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConnMaxLifetime = 15 * time.Minute
	MaxIdleConns    = 3
	MaxOpenConns    = 3
)

Functions

func Connect

func Connect(ctx context.Context, dbDatasource, dbType string) (*sqlx.DB, error)

Connect attempts to connect to database server.

func MigrateDB

func MigrateDB(ctx context.Context, migrate config.Migrate) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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