This documentation is intended for contributors.
An outline of the program's flow is available here.
- end of June 2017 : schema importation for MySQL, test suite
- end of July 2017 : schema importation for other SQL databases
- end of August 2017 : values importation (it's a "nice to have" actually)
Note : Knex v0.14 should be released around august and will have backwards incompatible changes (Mikael Lepistö on Gitter).
We support first MySQL. We aim to support all SQL databases supported by JHipster.
- MariaDB
- MS SQL
- MySQL
- Oracle
- PostgreSQL
- SQLite
We focus first on unit testing where we isolate our code. That's why we can mock the result of SQL queries passed with Knex, the expected JSON files after an importation, etc.
When we have a solid set of unit tests, we should start integration tests using Travis.
We may have to try several solutions. knex integrates all sql databases suported by JHipster.
Or we can integrate these packages ourselves.
- pg
- sqlite3
- mysql
- mysql2
- mariasql
- strong-oracle
- oracle
- mssql
Sql validation: we could use this module for sql validation: mysql-validator.
Local, command-line sql validation can also be obtained through Percona Toolkit.
One of the goals of this module is to produce entity files that can be integrated into JHipster, either as a classic JSON, or as their proprietary domain language JDL.