canonical / sqlair

Friendly type mapping for SQL databases
Apache License 2.0
17 stars 9 forks source link

Add Scan #42

Closed Aflynn50 closed 1 year ago

Aflynn50 commented 1 year ago

This PR adds the scan.go file. This contains all the functions to take the values returned by the database and insert them into the structs mentioned in the output expressions.

It also fixes a bug the named input parameters. These previously had been implemented but with ? in the query rather than @name. This bug was not found in testing because it was not possible to test with a complete database at that point.