Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { Conn *sqlx.DB All, Ero, Eros, IngestEro, InsertUser, CreateSession *sqlx.Stmt CreateMeta, RemoveMeta, UpdateMeta, DeleteMeta *sqlx.Stmt User, Lookup *sqlx.Stmt }
Database holds the connection to the DB as well as prepared statements on that connection.
func Init ¶
Init takes in a config.Config and returns a Database connection and nil, or nil and the error reported by prep functions otherwise.
Click to show internal directories.
Click to hide internal directories.