# eabarmel97/naive-relational-algebra architecture

> Architecture diagram of the GitHub repository eabarmel97/naive-relational-algebra, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/eabarmel97/naive-relational-algebra
- Repository: https://github.com/eabarmel97/naive-relational-algebra

## Overview

- Data Structure & Table Management (tables.jl): Represent this as the component that defines the schema, holds the data, and provides basic operations on tables.
- Relational Operations (operations.jl): Highlight this module as the executor of relational algebra operations, which leverages the table management functions to perform queries and transformations.
- Test Suite (test directory): Include this as a separate component that verifies the functionality of both tables and operations.

##### Relationships and Interactions
- Optionally, indicate how the naive implementation uses Julia's built-in data structures (OrderedDicts and Sets) to simulate relational database constructs. This can be annotated near the Table Management block.

##### Architectural Patterns & Choices
- Although the implementation is “naive”, it still clearly distinguishes between core data structures (tables) and the operations performed on them. This resembles a modular design where each file (module) has a focused responsibility.
- Incorporate details like “relational algebra operations” or “basic query execution” as process labels within their respective modules.

##### Technologies and Libraries Involved
- That it leverages Julia’s OrderedDicts and Sets for its internal representation.

## Diagram (Mermaid)

```mermaid
flowchart TD
    T["Tables Module (tables.jl)\nDefines schema, holds data (using OrderedDicts & Sets)"]:::core
    O["Operations Module (operations.jl)\nExecutes relational algebra operations"]:::core
    TS["Test Suite"]:::tests

    O -->|"uses"| T
    TS -->|"validates"| O
    TS -->|"validates"| T

    click T "https://github.com/eabarmel97/naive-relational-algebra/blob/main/src/tables.jl"
    click O "https://github.com/eabarmel97/naive-relational-algebra/blob/main/src/operations.jl"
    click TS "https://github.com/eabarmel97/naive-relational-algebra/tree/main/test"

    classDef core fill:#f9c74f,stroke:#333,stroke-width:2px;
    classDef tests fill:#90be6d,stroke:#333,stroke-width:2px;
```
