Dmitriy Gnatenko b319cf7ffa Update DB 3 meses atrás
..
db.go b319cf7ffa Update DB 3 meses atrás
db_config.go 71418ee77d Update DB (default ssl mode) 7 meses atrás
error.go 7612794c8f Add DB 7 meses atrás
readme.md c1444ec377 Add docs 7 meses atrás
tx.go b319cf7ffa Update DB 3 meses atrás

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