sequelize-typescript
sequelize-typescript copied to clipboard
Unable to provide search_path while using $set
Versions
- sequelize: ^5.21.3
- sequelize-typescript: ^1.1.0
- typescript: ^3.3.3
I'm submitting a ...
[x ] bug report [ ] feature request
Actual behavior:
There is no way to provide a searchPath parameter while using $set method
For example:
const post = new Post();
post.$set('author', value, {
searchPath: 'tenantId'
})
it still sends:
SET search_path to DEFAULT;
Expected behavior:
While it should send:
SET search_path to tenantId;
Hey @Erbolking sry for the late reply. Did you try to configure it like mentioned here: https://github.com/sequelize/sequelize/issues/4771#issuecomment-152181440