database

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatabaseConnection

func NewDatabaseConnection(path string) (*sql.DB, error)

NewDatabaseConnection creates a new database connection.

Types

type Database added in v1.4.0

type Database interface {
	SetPostInit(initFunc postInitFunc)
	GetConnection() *sql.DB
	Close()
}

func NewDatabase added in v1.4.0

func NewDatabase(path string) Database

Jump to

Keyboard shortcuts

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