Dmitriy Gnatenko b319cf7ffa Update DB | 3 maanden geleden | |
---|---|---|
.. | ||
db.go | 3 maanden geleden | |
db_config.go | 7 maanden geleden | |
error.go | 7 maanden geleden | |
readme.md | 7 maanden geleden | |
tx.go | 3 maanden geleden |
dbConn, err := db.NewDB(
db.NewConfig(
db.WithDriver("mysql"),
db.WithUsername("username"),
db.WithPassword("password"),
db.WithDatabase("db"),
),
)
if err != nil {
// TODO
}
err = dbConn.Ping()