database

package
v0.0.0-...-808d7f4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Set = wire.NewSet(
	Open,
)

Set is a Wire provider set that produces a *sql.DB.

Functions

func Open

func Open(src DataSource) (*sql.DB, func(), error)

Open opens a connection to a SQL database.

Types

type DataSource

type DataSource struct {
	DriverName     string
	DataSourceName string
}

DataSource specifies how to connect to a source database.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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