sequelize-sscce
sequelize-sscce copied to clipboard
Base repository for creating and sharing Sequelize SSCCEs
When using a relation's field in a top level where clause AND a limit, the generated SQL is invalid because the inner querries do not have the join: ``` text:...
In the code we execute two identical queries. One of them has a comment at the beginning. Despite passing the type of the query, sequelize changes the type automatically based...
This example demonstrates how sequelize.query does not trigger any hooks even if model and type are defined. Hooks are printed when called. But the example shows that no hooks are...
When a `Model.upsert` is made, only `beforeUpsert`, `afterUpsert`, `beforeValidate`, `afterValidate` hooks are triggered. No other hooks trigger, such as update or insert/create hooks or beforeSave, afterSave. In https://sequelize.org/docs/v6/other-topics/upgrade/#modelupsert and https://sequelize.org/api/v6/class/src/model.js~model#static-method-upsert...
When using `findAndCountAll` method, it's not possible to define a virtual column (through `attributes` option) and at the same time include that virtual column inside the `having` clause of the...
I've an issue with mariadb 10.5 so I'm adding the setup of it