Dmitriy Gnatenko bf16a8253c Update DB tx | 2 months ago | |
---|---|---|
.. | ||
db.go | 6 months ago | |
db_config.go | 6 months ago | |
error.go | 7 months ago | |
readme.md | 6 months ago | |
tx.go | 2 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()