AlaSQL.js - JavaScript SQL database for browser and Node.js. Handles both traditional relational tables and nested JSON data (NoSQL). Export, store, and import data from localStorage, IndexedDB, or Excel.
[Description]
For testing purpose, we want to simulate model & some other db-related script stuff and running it on some test scenarios. Rather than running it on some db, we prefer to run it on some in-memory database and alasql looks good for this.
We want to make sure that our defined models and db-related script is runs perfectly with current database condition.
[Purpose]
Inject alasql instance to sequelize config. But in sequelize source code, the constructor needs dialects, username and password.
[Description] For testing purpose, we want to simulate model & some other db-related script stuff and running it on some test scenarios. Rather than running it on some db, we prefer to run it on some in-memory database and alasql looks good for this.
We want to make sure that our defined models and db-related script is runs perfectly with current database condition.
[Purpose] Inject alasql instance to sequelize config. But in sequelize source code, the constructor needs dialects, username and password.
If it is possible, the code will be like this for the setupTest.js
Is there any way to inject alasql to this piece of code? Thank you