Documentation
¶
Overview ¶
Package db provides utilities to configure and connect to a database
Package db provides utilities to configure and connect to a database
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
Connection interface defines a method for retrieving the *gorm.DB
func NewConnection ¶
func NewConnection(cfg Config) (Connection, error)
NewConnection takes a db.Config and returns a Connection and an error
type ConnectionError ¶
type ConnectionError struct{}
ConnectionError custom error type
func (*ConnectionError) Error ¶
func (ce *ConnectionError) Error() string
Error implements the error interface
Click to show internal directories.
Click to hide internal directories.