Skip to main content

Migration REST Service

The Migration REST Service can be used to assist in the migration to using with DirectQuery. The REST service is available at: host:port/frtb-starter/migrationHelper/ The REST service contains the following components:

Security Configuration

The security configuration is handled by the DQMigrationHelperServiceSecurityConfig bean defined in the SecurityConfig. The default security config limits the use of this service to only ADMIN use.

Database Extraction

This service allows you to export ‘s data into a format that is ready for your database of choice. This service can extract for the following databases:

ClickHouse Export

To export data into a format ready to be loaded into ClickHouse, use the Template export. If you want to customize the stores to export, use the Custom export.

ClickHouse Template Extraction

URL: host:port/frtb-starter/migrationHelper/extractForDatabase/clickhouse Request Type: POST Body: LocalFileOutputHandler

Custom ClickHouse Extraction

A custom extraction can be provided to export specific stores and datastore schemas. The following is the default configuration for the /extract REST service to extract data for a ClickHouse database:

Snowflake Export

To export data into a format ready to be loaded into Snowflake, the Template export can be used. If you would like to customize the stores to export, you can use the Custom export.

Snowflake Template Extraction

URL: host:port/frtb-starter/migrationHelper/extractForDatabase/snowflake Request Type: POST Body: LocalFileOutputHandler

Custom Snowflake Extraction

The following is the default configuration for the /extract REST service to extract data for a Snowflake database:

Request Objects

The following objects are used in the requests to the endpoints in this REST service.

DatabaseExtractionDTO

LocalFileOutputHandler