Dima 9e7f50672c Update DB | 1 week ago | |
---|---|---|
.. | ||
db.go | 1 week ago | |
db_config.go | 1 week ago | |
error.go | 7 months ago | |
readme.md | 7 months ago | |
tx.go | 3 months ago |
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()