Skip to content

baldimario/cq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  • TUI (Terminal User Interface): doc/TUI.md
  • Architecture: doc/Architecture.md
  • Testing: doc/Testing.md
  • Roadmap: doc/Roadmap.md
  • Contributing: doc/Contributing.md

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:

  • Browse and open CSV files as tables
  • Execute SQL queries interactively
  • Multi-tab interface for multiple tables
  • Keyboard-driven navigation
  • No external dependencies

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.

About

cq - High-Performance SQL Query Engine for CSV Files

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages