Categorygithub.com/harrybrwn/db
repositorypackage
0.0.1
Repository: https://github.com/harrybrwn/db.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

db

A small collection of database utilities that make life easier for database use and testing.

import (
	"database/sql"

    "github.com/harrybrwn/db"
)

func main() {
    pool, err := sql.Open("postgres", "host=localhost password=testlab")
    if err != nil {
        panic(err)
    }
    db := db.New(pool, db.WithLogger(slog.Default()))
    // ...
}