Registry / database / georgysavva-scany-v2

georgysavva-scany-v2

JSON →
library2.1.4gogounverified

Scans data from a database into Go structs and more.

go get github.com/georgysavva/scany/v2
INSTALL
IMPORT
SIG · GEORGYSAVVA-SCANY-
G
georgysavva-scany-v2
databasegov2.1.4
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.

scany
github.com/georgysavva/scany/v2

Selects rows into a slice of structs using pgxscan.

package main import ( "context" "github.com/georgysavva/scany/v2/pgxscan" "github.com/jackc/pgx/v5/pgxpool" ) func main() { pool, _ := pgxpool.New(context.Background(), "postgres://...") var users []struct{ Name string } pgxscan.Select(context.Background(), pool, &users, "SELECT name FROM users") }
Debug
Known issues
breakingv2 uses pgx v5; v1 uses pgx v4.
fix
Use v2 for pgx v5 compatibility.
affects: <2.0.0
Upgrade
Version history
2.1.4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
georgysavva-scany-v2 — go get georgysavva-scany-v2 · libregistry