'Sequelize. SQLite Type checking
I started using Sequelize with SQLite. When I try to insert or update a value, it doesn't check for type-errors. For example I can use string values in a column with sequelize.BOOLEAN type.
I know SQLite allows this, but what about Sequelize? It doesn't check or I am missing something?
Should I add a validation check for each datatype? Is there an easy way of checking types instead of validating one by one in every model?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|