Colton Idle
08/22/2023, 3:46 PMid INTEGER PRIMARY KEY NOT NULL
it seems to auto increment on its own (which is fine), but I would've thought that i had to add AUTOINCREMENT
. is that just a sqlite thing, or is sqldelight just doing it on my behalf?Derek Ellis
08/22/2023, 3:52 PMINTEGER PRIMARY KEY
column points to the ROWID
https://www.sqlite.org/autoinc.html#:~:text=In%20SQLite%2C%20a%20column%20with,a%2064%2Dbit%20signed%20integer.vanniktech
08/22/2023, 4:07 PMColton Idle
08/31/2023, 1:52 PM1. If the AUTOINCREMENT keyword appears after INTEGER PRIMARY KEY, that changes the automatic ROWID assignment algorithm to prevent the reuse of ROWIDs over the lifetime of the database. In other words, the purpose of AUTOINCREMENT is to prevent the reuse of ROWIDs from previously deleted rows.Interesting!!!