1. Overview

QueryBuilder is a modular backend system that allows loading CSV/Excel files into a database, running read-only SQL queries, inspecting tables and schemas, and exporting query results. The backend is designed to be engine-agnostic, supporting multiple SQL engines (SQLite, DuckDB planned).

Key Features


2. Architecture

Modules

  1. Core

  2. Engines

    Supports SQLite (currently) and planned DuckDB. We use raw database APIs instead of ORM or third-party wrappers. It handles connection pooling internally and provides a context manager for safe resource handling

  3. Loader

  4. Query Builder

  5. Main (QuerySession)


3. Data Flow

  1. File Upload/Load