Web Analytics

cq

⭐ 190 stars English by baldimario

cq - High-Performance SQL Query Engine for CSV Files

Cross-Build and Test (with zig build system)

A lightweight, fast SQL query processor written in C that enables executing SQL queries directly on CSV files without requiring a database. For full documentation, see the /doc directory.

cq in action

Documentation

Quick Start

Build: make

Command Line

Run a sample query: ./build/cq -q "SELECT name, age FROM 'data.csv' WHERE age > 25" -p

Terminal UI

Launch interactive TUI: ./build/cqtui data/

Features:

Example SQL Files

The repository includes example SQL files under assets/ (example_between.sql, example_aggregation.sql, etc.). See assets/ for details.

Data & Features Overview

License

MIT License. See LICENSE file for details.

--- Tranlated By Open Ai Tx | Last indexed: 2026-03-08 ---