Powerful struct scanning for Go's database/sql and other compatible interfaces.
sqlhis easy to use because it lives very close to
database/sql. The primary goal of
sqlhis to work with and facilitate using
database/sqlwithout replacing or hijacking it. When using
sqlhyou manage your
*sql.Txas you normally would and pass those as arguments to functions in
sqlhwhen scanning or persisting models;
sqlhthen works within the confines of what you gave it.
When accepting arguments that work directly with the database (
sqlhaccepts them as interfaces. This means
sqlhmay work with other database packages that define their own types as long as they kept a method set similar to