Dima 9e7f50672c Update DB 2 days ago
..
db.go 9e7f50672c Update DB 2 days ago
db_config.go 9e7f50672c Update DB 2 days ago
error.go 7612794c8f Add DB 7 months ago
readme.md c1444ec377 Add docs 7 months ago
tx.go 24549ee424 Add TX 3 months ago

readme.md

Usage example

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()