v2 – github.com/georgysavva/scany/v2 Index | Files | Directories

package scany

import "github.com/georgysavva/scany/v2"

Package scany is a set of packages for scanning data from a database into Go structs and more.

scany isn't limited to any specific database. It integrates with database/sql, so any database with database/sql driver is supported. It also works with https://github.com/jackc/pgx native interface. Apart from the out of the box support, scany can be easily extended to work with almost any database library.

scany contains the following packages:

sqlscan package works with database/sql standard library.

pgxscan package works with github.com/jackc/pgx library native interface.

dbscan package works with an abstract database and can be integrated with any library that has a concept of rows. This particular package implements core scany features and contains all the logic. Both sqlscan and pgxscan use dbscan internally.

Index

Source Files

doc.go

Directories

PathSynopsis
dbscanPackage dbscan allows scanning data from abstract database rows into Go structs and more.
pgxscanPackage pgxscan allows scanning data into Go structs and other composite types, when working with pgx library native interface.
sqlscanPackage sqlscan allows scanning data into Go structs and other composite types, when working with database/sql library.
Version
v2.1.4 (latest)
Published
Mar 19, 2025
Platform
windows/amd64
Last checked
1 hour ago

Tools for package owners.