SQLite JSON datatype support (with JSON1 extension) (#7094)
* Adds JSON support for sqlite * Add JSON support to sqlite query-generator * add integration test for sqlite json * add unit test for sqlite json * fix inaccurate test for json from postgres * Fix failing test spec in postgres * Change accroding to review - Change MySqlQueryGenerator to AbstractQueryGenerator (sqlite) - Move parseConditionObject method to the AbstractQueryGenerator (sqlite, postgres) - Remove unnecessary module require - Remove extra lines * Fix failing test with sequelize static reference * Add JSONB type alias to sqlite data types * Update changelog.md * Update jsdoc for JSON datatype * Updates from PR feedback - Convert es5 syntax to es6 for sqlite query-generator * Fix parenthesis with single parameter * Fix deleteQuery condition with JSON field * Update integration/data-types.test.js * Add JSON injection preventation code for sqlite - Add checkValidJsonStatement method to sqlite query-generator - Add injection tests for sqlite * Update sqlite JSON query-generator * Move common json DAO tests to abstract/dao.test.js - Add support for json property accessors (sqlite, postgres) * Fix wrong indentation in abstract/query-generator.js * Update query-generator.js to use common json method * Fix inconsistent postgres cast syntax * Update JSON test specs - Add injection test for postgres/query-generators.js - Replace default sql test expectation with specific dialect (postgres) - Update expectsql from test/support.js to throw error when no default expectation * Fix failing postgres test with cast * Fix postgres casting syntax * Fix failing test for postgres * Revert indentation of postgres query-generator * Cleanup unnecessarily added code update jsdoc of jsonPathExtractionQuery to match the exact function arguments * Move integration/dialects/abstract/dao.test.js to integration/json.test.js * Rewrite unit tests for json query-generator in unit/sql/json.test.js * Capitalize AND operator while generating json query via condition object * Fix failed tests
Showing
with
1282 additions
and
757 deletions
test/integration/json.test.js
0 → 100644
-
Please register or sign in to post a comment