This project explores options for working with SQLMesh and Fabric.
SQLMesh is a data transformation framework that brings software engineering best practices to data teams. This repository serves as an exploration space to understand its capabilities and integration options.
config.yaml- SQLMesh configurationexternal_models.yaml- External model definitionsmodels/- SQL model definitionsmacros/- Reusable SQL macrosseeds/- Static data filestests/- Data quality testsaudits/- Audit configurations
-
Create a
.envfile in the project root with the following variables:target=<your_target_warehouse_host> source=<your_source_warehouse_host> workspace=<your_workspace_id> tenant_id=<your_tenant_id> user=<your_service_principal_user> password=<your_service_principal_password>
These variables are referenced in config.yaml for connecting to Microsoft Fabric warehouses.
-
Create a virtual environment:
python -m venv .venv source .venv/bin/activate -
Install dependencies:
pip install -r requirements.txt