- PostgreSQL
- MySQL
Prerequisites
- Download the necessary scripts from the repo
- A running PostgreSQL instance.
- If you don’t have PostgreSQL installed locally, you can use Docker to run a PostgreSQL container. For detailed instructions on setting up and running PostgreSQL with Docker, refer to the official PostgreSQL Docker documentation.
- Downloaded CSV data files.
Set up your database
Step 1: Create database tables
- Create a dedicated database (optional).
- Connect to your PostgreSQL database and create the necessary tables.
create_tables.sql for the complete table definitions.Step 2: Load CSV Data
-
After creating the tables, load the data
⚠️ IMPORTANT: Update the file paths in
load_data.sqlto point to your downloaded CSV files. Ensure PostgreSQL has read access to the file paths specified in the load script. - Execute the load script