This is a simple application, which allows to transfer data from the Flopsar database to a relational database. Currently, there is only one database supported out of the box.
In order to transfer data to a relational database, first you need to create a database and a schema.
The available schemas can be found in resources/<database>/ddl.sql file.
$ psql -h <host> -p <port> -U <usernam> -f ddl.sql
$ psql -h <host> -p <port> -U <usernam> -f dml.sql
There are a few steps required to add support for another database. Follow the instructions below:
- Create your own database schema file. See
resources/postgresql/ddl.sqlas an example. - Create a class that implements
org.flopsar.rdbms.jdbc.DMLinterface. Seeorg.flopsar.rdbms.jdbc.PostgresDMLas an example. - Add a new element to the
SUPPORTED_JDBC_DRIVERSarray inorg.flopsar.rdbms.jdbc.JDBCConnectorclass. - Add a dependency (JDBC jar file) to the Gradle build script.