Registry / database / gocraft-dbr-v2

gocraft-dbr-v2

JSON →
library2.7.7gogounverified

Provides additions to Go's database/sql for super fast performance and convenience.

go get github.com/gocraft/dbr/v2
INSTALL
IMPORT
SIG · GOCRAFT-DBR-V2
G
gocraft-dbr-v2
databasegov2.7.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

dbr
github.com/gocraft/dbr/v2

Opens a database connection and runs a query to count users.

package main import ( "fmt" "github.com/gocraft/dbr/v2" ) func main() { conn, _ := dbr.Open("postgres", "dsn", nil) sess := conn.NewSession(nil) var count int sess.Select("COUNT(*)").From("users").LoadOne(&count) fmt.Printf("User count: %d\n", count) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.7.7latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
gocraft-dbr-v2 — go get gocraft-dbr-v2 · libregistry