Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.67 KB

File metadata and controls

56 lines (38 loc) · 1.67 KB

Introduction to X-Road Catalog Persistence

The purpose of this module is to persist and read persisted data. The module is used by the Collector and Lister modules.

A class diagram illustrating X-Road Catalog Persistence with the default and FI profiles:

Class diagram

See also the Installation Guide and User Guide.

Create database

The database required for X-Road Catalog can be created with the following:

sudo -u postgres psql --file=src/main/sql/init_database.sql

The command for creating the database tables depends on the profile (default or FI) that is used. More information about profiles is available in the build instructions.

  • When the default profile is used:
    sudo -u postgres psql --file=src/main/sql/create_tables.sql
  • When the FI profile is used:
    sudo -u postgres psql --file=src/main/sql/create_tables_fi.sql

Also note that these scripts will be run automatically (X-Road Catalog Collector spec) when the xroad-catalog-collector service (X-Road Catalog Collector service) is installed to the target server.

Build

X-Road persistence can be built with:

../gradlew clean build

Run

X-Road persistence can be run with Gradle:

../gradlew bootRun

or run from a JAR file:

../gradlew bootRun -Dspring.profiles.active=default