# kotasirivenkat21-source/siri_sql architecture

> Architecture diagram of the GitHub repository kotasirivenkat21-source/siri_sql, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kotasirivenkat21-source/siri_sql
- Repository: https://github.com/kotasirivenkat21-source/siri_sql

## Overview

This repository describes a SQL data warehouse: collected raw datasets are cleaned and organized for analysis and reporting. Its tree contains separate bronze, silver, and gold SQL areas, but the README does not define their exact responsibilities or document calls between them, and no source excerpts were provided. The graph therefore shows the documented raw-data-to-analysis flow and leaves layer-to-layer relationships unasserted; analysis is a stated capability, not a sampled query implementation.

Main entry points: [`scripts/bronze/proc_load_bronze.sql`](https://github.com/kotasirivenkat21-source/siri_sql/blob/main/scripts/bronze/proc_load_bronze.sql) (Bronze loading), [`scripts/silver/proc_load_silver.sql`](https://github.com/kotasirivenkat21-source/siri_sql/blob/main/scripts/silver/proc_load_silver.sql) (Silver cleaning), [`scripts/gold/ddl_gold.sql`](https://github.com/kotasirivenkat21-source/siri_sql/blob/main/scripts/gold/ddl_gold.sql) (Gold warehouse), [`datasets`](https://github.com/kotasirivenkat21-source/siri_sql/tree/main/datasets) (Raw datasets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Data input"]
  node_datasets[("Raw datasets")]
end

subgraph group_warehouse["Warehouse layers"]
  node_bronze["Bronze loading"]
  node_silver["Silver cleaning"]
  node_gold[("Gold warehouse<br/>[ddl_gold.sql]")]
end

subgraph group_use["Analytics"]
  node_analysis["SQL analysis"]
end

node_analyst(("Analyst"))

node_datasets -.->|"feeds raw data"| node_bronze
node_bronze -.->|"transforms data"| node_silver
node_silver -.->|"loads warehouse"| node_gold
node_gold -.->|"supports queries"| node_analysis
node_analyst -.->|"runs queries"| node_analysis

click node_datasets "https://github.com/kotasirivenkat21-source/siri_sql/tree/main/datasets"
click node_bronze "https://github.com/kotasirivenkat21-source/siri_sql/blob/main/scripts/bronze/proc_load_bronze.sql"
click node_silver "https://github.com/kotasirivenkat21-source/siri_sql/blob/main/scripts/silver/proc_load_silver.sql"
click node_gold "https://github.com/kotasirivenkat21-source/siri_sql/blob/main/scripts/gold/ddl_gold.sql"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_datasets toneBlue
class node_bronze,node_silver,node_gold toneAmber
class node_analysis toneMint
class node_analyst toneIndigo
```

## Components

### Data input

- [Raw datasets](https://github.com/kotasirivenkat21-source/siri_sql/tree/main/datasets): `datasets`

### Warehouse layers

- [Bronze loading](https://github.com/kotasirivenkat21-source/siri_sql/blob/main/scripts/bronze/proc_load_bronze.sql): `scripts/bronze/proc_load_bronze.sql`
- [Silver cleaning](https://github.com/kotasirivenkat21-source/siri_sql/blob/main/scripts/silver/proc_load_silver.sql): `scripts/silver/proc_load_silver.sql`
- [Gold warehouse](https://github.com/kotasirivenkat21-source/siri_sql/blob/main/scripts/gold/ddl_gold.sql): `scripts/gold/ddl_gold.sql`

### Analytics

- **SQL analysis**

### Other components

- **Analyst**

## Connections

- Raw datasets → Bronze loading: feeds raw data
- Bronze loading → Silver cleaning: transforms data
- Silver cleaning → Gold warehouse: loads warehouse
- Gold warehouse → SQL analysis: supports queries
- Analyst → SQL analysis: runs queries
