Versions in this module Expand all Collapse all v1 v1.0.2 Aug 28, 2019 v1.0.0 Jun 24, 2019 Changes in this version + var DB *db.DB + func Connect(options ...module.Option) error + func Driver(driver DBType) module.Option + func GetInfo() *sqlinfo + func Hostname(host string) module.Option + func Name(name string) module.Option + func Options(options string) module.Option + func Password(pass string) module.Option + func Port(port string) module.Option + func ReadConfig() (err error) + func Username(user string) module.Option + type DBType int + const MYSQL + const PGSQL + const SQLITE + func (d DBType) String() string