Documentation ¶
Overview ¶
Package db is a very simple database package based on reform(https://github.com/go-reform/reform).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoRows is returned when no rows are found ErrNoRows = reform.ErrNoRows // ErrInitialized is returned when the database is already initialized ErrInitialized = errors.New("database already initialized") )
Functions ¶
func Get ¶
func Get() *reform.DB
Get returns database connection if the package was initialized using Init() method, returns nil otherwise. Make sure your are calling Init() before any queries.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.