Dmitriy Gnatenko b319cf7ffa Update DB | 3 meses atrás | |
---|---|---|
.. | ||
db.go | 3 meses atrás | |
db_config.go | 7 meses atrás | |
error.go | 7 meses atrás | |
readme.md | 7 meses atrás | |
tx.go | 3 meses atrás |
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()