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
Click to show internal directories.
Click to hide internal directories.