database

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: BSD-3-Clause Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrConfigNotFound ...
	ErrConfigNotFound = errors.New("database config is not found")
)

Functions

func GetInstance

func GetInstance(ctx context.Context, instanceName string) (*sql.DB, error)

GetInstance ...

func Init

func Init(ctx context.Context, serviceName string, cfs []config.Database)

Init ...

Types

This section is empty.

Directories

Path Synopsis
sql

Jump to

Keyboard shortcuts

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