Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB interface { Close() error Error() error Prepare(string) *sql.Stmt QueryRow(string, ...interface{}) *sql.Row RowScan(*sql.Row, ...interface{}) StmtExec(*sql.Stmt, ...interface{}) sql.Result }
DB is a wrapper around the standard database/sql interface that provides error handling logic, allowing for easier code maintenance in application code.
func InitializeDB ¶
InitializeDB opens a new DB connection with the database and wraps it in Hermes DB helpers.
Click to show internal directories.
Click to hide internal directories.