Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDatabasePool ¶
func NewDatabasePool(configuration *Configuration) (pool *sqlx.DB, err error)
NewDatabasePool is a factory function for creating a database connection pool with sqlx from a given DatabaseConfiguration instance.
Types ¶
type Configuration ¶
Configuration provide information relative to MySQL database connection.
func NewConfiguration ¶
func NewConfiguration(v *viper.Viper) (configuration *Configuration, err error)
NewConfiguration is a factory function for creating a DatabaseConfiguration instance using a viper sub tree.
func (*Configuration) URI ¶
func (configuration *Configuration) URI() string
URI is a factory method for generating a database URI.
Click to show internal directories.
Click to hide internal directories.