db

package
v0.0.0-...-07d50f2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRecords = fmt.Errorf("No records found")

ErrNoRecords is the error returned when no rows are found in DB

Functions

This section is empty.

Types

type Connection

type Connection interface {
	GetConnectionString(*config.Config) string
	Connect(*config.Config) error
	Close() error
	Ping() error
	poll.Repository
}

Connection is an interface to connect and interact with a database

func Init

func Init(c *config.Config) Connection

Init returns a Connection object based on current application configuration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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