database

package
v0.0.0-...-dedb909 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 7 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) (*sqlx.DB, error)

Connect attempts to connect to database server.

func MigrateDB

func MigrateDB(ctx context.Context, db *sqlx.DB) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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