The original dataset is Horse Racing results - UK/Ireland 1988-2026 in Kaggle.
Before building your dev container, copy .devcontainer/.env.example to .devcontainer/.env and edit it to your liking..
| Environment Variable | Description |
|---|---|
| COMPOSE_USER_ID | the UID of your OS account invoking docker compose command |
| COMPOSE_GROUP_ID | the GID of the account above |
| POSTGRES_USER | the name of the database owner |
| POSTGRES_PASSWORD | the password of the database owner |
| POSTGRES_DB | the name of the database to build |
| ANALYST_PASSWORD | the password of the database user analyst, which will be used by read-only database applications |
In the dev container, invoke the following command.
gradle clean build
-
Place the original dataset file in CSV format here, named
raceform.csv. -
Import the file to the staging table.
psql -f import-to-staging.sql
-
Run the importing program.
java -jar build/libs/raceform-database.jar
This program is licensed under the Apache License Version 2.0.