github Lighter-swift/Lighter 1.0.10
INTeger

latest releases: 1.4.12, 1.4.10, 1.4.8...
3 years ago

The release improves SQLite compatibility wrt "rowid" primary keys, also called "INTEGER primary keys". If a column is declared as INTEGER PRIMARY KEY, SQLite will automatically push a row-id as the primary key if no explicit value is specified. Lighter already accounted for that.
It didn't distinguish that though from other integer columns, e.g. if specified as just INT. A column declared as INT PRIMARY KEY doesn't support the automatic key assignment (INTEGER must be spelled out).
This is now properly implemented in the schema reflection and addressed in the generator.

There is another fix related to the generation of plural names in the SQLite API, e.g. the generator generated names like taltents0 if the base name was plural already (and singularizeRecordNames is off, which is the default).

Don't miss a new Lighter release

NewReleases is sending notifications on new releases.