driver

package
v0.0.0-...-644ee68 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureDB

func ConfigureDB(dsn string, config DBConfiguration) (*sql.DB, error)

func OpenDB

func OpenDB(dsn string) (*sql.DB, error)

OpenDB creates sql connection to a database

Types

type DBConfiguration

type DBConfiguration struct {
	ConnMaxLifetime, ConnMaxIdleTime, MaxIdleConns time.Duration
	MaxOpenConns                                   int
}

Jump to

Keyboard shortcuts

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