Dmitriy Gnatenko bf16a8253c Update DB tx 2 months ago
..
db.go d11024adbc Update DB 6 months ago
db_config.go 71418ee77d Update DB (default ssl mode) 6 months ago
error.go 7612794c8f Add DB 7 months ago
readme.md c1444ec377 Add docs 6 months ago
tx.go bf16a8253c Update DB tx 2 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()