The repository contains 3 files:
main.sql
= schema definitions used to create database structuredata.sql
= mock data that can be utilized in order to test databasetests.sql
= retrieve queries used to test database with mock data
The project uses a PostgreSQL database; please have installed a local database server or run PostgreSQL instance as a container.
Tested with:
- Postgres v.16
- Postgres v.17
In order to install this project, please complete following steps:
- Create a new PostgreSQL database
- Import the schema from the
main.sql
file
- Import using the psql utility: run
$ psql -U (user_name) -d (database_name) < main.sql
- Import using the Beekeeper Studio: open File -> Import SQL files and the import the
main.sql
file
- Import mock data from the
data.sql
file:
- Import using the psql utility: run
$ psql -U (user_name) -d (database_name) < data.sql
- Import using the Beekeeper Studio: open File -> Import SQL files and the import the
data.sql
file
- Now you can run tests from
tests.sql
2025 Iurii Mednikov iurii.mednikov@iu-study.org
The code is delivered under terms of the MIT software license. For more information, check the LICENSE.txt file.