Releases: Interactions-as-a-Service/d1-orm
Releases · Interactions-as-a-Service/d1-orm
v0.9.2
v0.9.1
v0.9.0
Minor Changes
- #71
5c168e9
Thanks @dtbuchholz! - This introduces breaking changes by updating to the latest@cloudflare/workers-types@^4.20231025.0
, including compatability changes for the D1Databaseexec
API. Namely, the model methodsCreateTable
andDropTable
now return aD1ExecResult
instead ofD1Result
.
v0.8.0
Minor Changes
- #69
2d5cbef
Thanks @helloimalastair! - Adds awithRowId
option to the Model class, defaulting to false. When not set totrue
, theModel.createTableDefinition
will now include aWITHOUT ROWID
line, which can optimise the performance of a majority of tables.
v0.7.2
v0.7.1
v0.7.0
v0.6.0
Minor Changes
-
#55
5e30824
Thanks @Skye-31! - [breaking] Feat: Refactor models to allow multiple unique keysThis change restructures the way that primary keys, auto increment keys and unique keys are provided. This allows for multiple unique keys to be provided for a model. These fields have been moved from the ModelColumn type to the first parameter in the Model constructor.
Refer to the docs for more information.