Sovereign 8s.is mirror of standardgalactic/cq
  • C 97.2%
  • Zig 2%
  • Makefile 0.7%
  • Python 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-12-17 21:01:31 +01:00
.github/workflows chore: updated badge and removed old wrong workflow 2025-12-14 21:34:40 +01:00
assets feat: window funcitons 2025-12-14 04:42:51 +01:00
data feat: date support 2025-12-15 13:38:05 +01:00
doc chore: organized doc and added debug makefile target 2025-12-17 21:01:31 +01:00
include feat: output formats 2025-12-16 15:08:59 +01:00
src feat: output formats 2025-12-16 15:08:59 +01:00
tests feat: output formats 2025-12-16 15:08:59 +01:00
utils chore: updated readme install instructions and fixed typo in generate_big_dataset.py (thanks Amedeo) 2025-12-15 19:45:09 +01:00
zig added red color for a more visibile feedback on build errors 2025-12-14 21:22:07 +01:00
.gitignore fix: solved heap buffer overflow in parse_line 2025-12-16 11:59:11 +01:00
LICENSE chore: organized doc and added debug makefile target 2025-12-17 21:01:31 +01:00
Makefile chore: organized doc and added debug makefile target 2025-12-17 21:01:31 +01:00
README.md chore: organized doc and added debug makefile target 2025-12-17 21:01:31 +01:00

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

  • Getting Started: doc/GettingStarted.md
  • Installation: doc/Installation.md
  • Command Line Interface: doc/CLI.md
  • Architecture: doc/Architecture.md
  • Testing: doc/Testing.md
  • Roadmap: doc/Roadmap.md
  • Contributing: doc/Contributing.md

Quick Start

Build: make

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

Example SQL Files

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

Data & Features Overview

  • See the /doc folder for detailed sections on data types, date formats, CSV format, and more.

License

MIT License. See LICENSE file for details.