Dima 24549ee424 Add TX | 3 mesiacov pred | |
---|---|---|
.. | ||
db.go | 3 mesiacov pred | |
db_config.go | 7 mesiacov pred | |
error.go | 7 mesiacov pred | |
readme.md | 7 mesiacov pred | |
tx.go | 3 mesiacov pred |
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()