canonical / sqlair

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

Error on struct with no tags #88

Closed Aflynn50 closed 12 months ago

Aflynn50 commented 1 year ago

This PR adds in a check for output expressions that use an asterisk, e.g. &MyStruct.*. If the struct has no db tags then an error will be thrown. Currently, the statement SELECT &MyStruct.* FROM t would result in the SQL SELECT FROM t which would trigger a parsing error from the database.