comru / firebird

Cuba app-component provided support Firebird database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

firebird

This CUBA app-component provides support for the Firebird database.

Integration is implemented in the following classes:

Running the project

  1. Install Fierbird DB server.
  2. Open the project in CUBA Studio (Import -> Git)
  3. Modify the build.gradle file and set correct paths to the aliases.conf and fdb files.
  4. Execute the create db task from Studio
  5. Start the project from the Studio

Using as app-component

  1. Install Fierbird DB server.
  2. Open the project in CUBA Studio (Import -> Git).
  3. Execute the 'install app component' task.
  4. Create new a project or open already exists project.
  5. Add recently installed app component to your project. (Project properties -> add custom component).
  6. Select Firebird db type.
  7. In build.gradle - create a FierbirdDbCreation class which extends the AbstractDbCreation class and override the dropAndCreateDatabase method. Find an example here. Replace the type of 'createDb' task with FierbirdDbCreation instead of CubaDbCreation class. Note, that this implementation refers to the full path to the aliases.conf and fdb files.
  8. Add Firebird dependecy to buildscript dependencies block. Find an example here.
  9. In build.gradle - remove masterUrl, createDbSql, dropDbSql property of createDb task.
  10. Execute the create db task from Studio.
  11. Start the project from the Studio.

About

Cuba app-component provided support Firebird database


Languages

Language:Groovy 83.7%Language:Java 16.3%