Dmitriy Gnatenko b319cf7ffa Update DB 2 mesi fa
..
db.go b319cf7ffa Update DB 2 mesi fa
db_config.go 71418ee77d Update DB (default ssl mode) 6 mesi fa
error.go 7612794c8f Add DB 6 mesi fa
readme.md c1444ec377 Add docs 6 mesi fa
tx.go b319cf7ffa Update DB 2 mesi fa

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