The main project uses .NET 8 + PostgreSQL (Azure/local) to import trade CSV files. This guide provides a minimal, beginner-friendly path to understand the data flow using SQLite and a single CSV file.
- Year: 2019
- Country: IN (India)
- Trade flow: imports
- File: trade.csv
From the trade-data repository:
trade-data/year/2019/IN/imports/trade.csv
Validate the pipeline end-to-end:
CSV → SQL table → basic queries
before scaling to PostgreSQL and multi-country imports.
- Locate or download the
trade.csvfile - Create a local SQLite database (
trade.db) - Create a table using CSV headers
- Import CSV rows into the table
- Run basic validation queries:
- total row count
- check NULLs in key columns
- sample top rows
- This guide is for learning and validation only.
- The same logic later maps to PostgreSQL import used by the main system.