Dima 9e7f50672c Update DB | 3 dagen geleden | |
---|---|---|
.. | ||
db.go | 3 dagen geleden | |
db_config.go | 3 dagen 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()