gnormal / gnorm

A database-first code generator for any language
https://gnorm.org
Other
484 stars 39 forks source link

Adds IsAutoIncrement to column definitions. Fixes #52. #92

Closed daniel-reed closed 11 months ago

daniel-reed commented 6 years ago

Mysql holds this information in the extra column. For postgres, the simplest route I could find is checking the default column for a call to nextval(). With IsAutoIncrement, cruds can now easily avoid inserting and updating any auto incremented columns.