Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBClient ¶
DBClient represents the structure to hold DB Client object required to create DB session and query and fetch results.
type DBConnOpts ¶
type DBConnOpts struct {
QueryFilePath string
}
DBConnOpts represents additonal parameters to create a DB Client
type Manager ¶
Manager represents the set of methods used to interact with the db.
func NewDBClient ¶
NewDBClient initializes a connection object with the databse.
func NewManager ¶
func NewManager(db string, dsn string, opts *DBConnOpts) (Manager, error)
NewManager instantiates an object of Manager based on the params
Click to show internal directories.
Click to hide internal directories.