Open lunemec opened 6 years ago
@markphelps What do you think about also implementing sql.Scanner
and driver.Valuer
for the generated optional types? This would help make this package compatible with most ORMs and drivers and one can use these types in both DTOs and database entities.
It would be awesome to have wrappers for sql.Null* types. It will be different from the generated primitive types though.
Example:
The question is, use it like in my example, or just implement
sql.Scanner
andsql.Valuer
interfaces?