db

package
v0.0.0-...-3e16b6b Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ConnectionString             *string
	Driver                       *string
	MaxOpenConnections           *int
	MaxIdleConnections           *int
	ConnectionMaxLifetimeMinutes *int
}

Config ...

type Provider

type Provider interface {
	Get(ctx context.Context, cfg Config) (*sqlx.DB, error)
}

Provider ...

func NewProvider

func NewProvider() Provider

NewProvider ...

Jump to

Keyboard shortcuts

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