-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: perf, restructuring, rm _getOrFind, rm params.$returning, …
…use instance methods (#429) * perf: set id, check necessity of $in and $and * fix: explicit NullableId check against null, not just truethy * Use object instead of function * Use object instead of function * Simplfy paramsToAdapter * Faster count * Limit get method to one result * Use SQL select, branch patch and remove. * Set attributes for count * Remove property * fix: $returning, order, _update - rm '$returning' for id !== null - consider order for '_get'; - simplify '_update' & unset '$select' to get all fields * Standardize create and update * Standardize returning * Optimize adapters, update tests * Fix spread * Cleanup @fratzinger suggestions * fix: rm option returning for single calls, sort for multi patch * Fix update/patch with includes * Update multi patch sort * Use instance.set * Fix typo * Remove applyScope and update paramsToAdapter * Remove _getOrFind * Make update and patch more similar return code * Fix option:raw for updates * Don't set id * Use instance in update * Update docs * docs: migrate to esm imports * fix: renaming sequelize -> sequelizeOptions & rm ts-ignore --------- Co-authored-by: DaddyWarbucks <[email protected]>
- Loading branch information
1 parent
1beab56
commit a03fb06
Showing
7 changed files
with
704 additions
and
397 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.