All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Added cascade option to TRUNCATE TABLE
- Added remove on deletion from relationship option to the relationship decorator
- Disabling of constraint checks via options argument to initializeStore
- Complex indexed values
- Indexes can now be built against any object, not just primitives
- Indexes are built deterministically using object-hash, so there's no need to keep references to objects (ES6 Map or Set for example).
- Values can now be queried using index values or other properties using the findXBy functions. If a value hasn't been indexed then it falls back to a normal, slow filter and warns.
- findAllBy and findOneBy
- Supports queries for non-primary key properties
- findOneBy throws an exception if no values are found or if many values are found