db

package
v0.0.0-...-4a24cc8 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnexpectedRowCount = errors.New("Unexpected number of rows updated")
	ErrNotFound           = errors.New("Not found.")
)
View Source
var SockFile = getSocketFile()

Functions

func CheckRowsAffected

func CheckRowsAffected(r sql.Result, expectedRows int64) error

func Connect

func Connect() (*sql.DB, error)

func ConnectForTesting

func ConnectForTesting(t *testing.T) *sql.DB

func ConnectWithURI

func ConnectWithURI(uri string) (*sql.DB, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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