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")
}
Upgrade
Version history
2.1.4latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.