canonical / sqlair

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

Add Outcome #54

Closed Aflynn50 closed 1 year ago

Aflynn50 commented 1 year ago

This PR adds a new struct, Outcome that can be used to access the outcome of the query (number of rows affected and similar things). The struct needs to be passed as the first of the outputArgs to Get and it will be populated with any information available once the query is run.

It also merges One and Run into Get and renames: All -> GetAll Iter.Decode -> Iter.Get