Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Database Tools
  3. dsq

dsq

NOASSERTIONGov0.23.0

A command-line tool for running SQL queries against JSON, CSV, Excel, Parquet, and other structured data files.

GitHubGitHub
3.9k stars162 forks0 contributors

What is dsq?

dsq is a command-line tool that allows users to run SQL queries directly against structured data files like JSON, CSV, Excel, and Parquet. It solves the problem of needing to import data into a database before querying, enabling quick data exploration and transformation from the terminal.

Target Audience

Data analysts, developers, and system administrators who work with multiple data formats and need to quickly query or transform files without setting up a full database.

Value Proposition

Developers choose dsq for its simplicity, broad file format support, and the ability to use familiar SQL syntax for ad-hoc data analysis, making it a versatile alternative to format-specific tools or heavier database solutions.

Overview

Commandline tool for running SQL queries against JSON, CSV, Excel, Parquet, and more.

Use Cases

Best For

  • Querying CSV or JSON files with SQL without importing them into a database
  • Joining data from different file formats (e.g., CSV with JSON) in a single SQL query
  • Quickly exploring the structure and content of Parquet or Excel files from the command line
  • Transforming nested JSON data into flat tables using SQL dot notation
  • Running aggregate queries (like COUNT, AVG) on log files or large datasets
  • Interactive data exploration with a SQL REPL for ad-hoc analysis

Not Ideal For

  • High-performance analytics on large datasets requiring column-oriented storage or vectorized execution
  • Projects needing active maintenance and frequent updates due to its current inactive development status
  • Handling deeply nested JSON structures where path navigation through arrays is necessary
  • Windows users relying heavily on piping data, as it doesn't work on Windows outside WSL

Pros & Cons

Pros

Broad Format Support

Supports querying JSON, CSV, Excel, Parquet, Avro, YAML, and log files directly, as listed in the Supported Data Types table, eliminating the need for format-specific tools.

Cross-File Joins

Enables SQL joins across multiple files of different formats in a single command, demonstrated in the 'Multiple files and joins' section with examples joining CSV and JSON data.

Efficient Caching

Optional disk caching speeds up repeated queries on unchanged datasets by storing imported data with SHA1-based invalidation, detailed in the Caching section for large file exploration.

Interactive REPL

Built-in SQL REPL allows iterative querying without reloading data, shown in the Interactive REPL section for ad-hoc data exploration.

Cons

Inactive Development

The README explicitly states the project is not under active development and recommends alternatives like DuckDB for stronger analytics foundations, risking long-term support.

SQLite Performance Trade-offs

Relies on SQLite, which lacks column-oriented storage and vectorized execution, making it slower for large-scale analytics compared to DuckDB or ClickHouse, as noted in benchmarks.

Nested Data Limitations

Cannot specify paths through arrays (only objects) or retrieve whole objects, restricting flexibility with complex JSON structures, admitted in the 'Limitation: nested arrays' and 'Limitation: whole object retrieval' sections.

Frequently Asked Questions

Quick Stats

Stars3,865
Forks162
Contributors0
Open Issues20
Last commit2 years ago
CreatedSince 2022

Tags

#parquet#cli-tool#csv#golang#cli#sql-query#tsv#sqlite#data-processing#command-line#json#data-analysis#excel#data-format#sql

Built With

S
SQLite
G
Go

Included in

Database Tools5.1kJSON1.5k
Auto-fetched 13 hours ago

Related Projects

jqjq

Command-line JSON processor

Stars35,273
Forks1,812
Last commit5 days ago
osqueryosquery

SQL powered operating system instrumentation, monitoring, and analytics.

Stars23,408
Forks2,583
Last commit8 days ago
fxfx

Terminal JSON viewer & processor

Stars20,544
Forks483
Last commit2 months ago
grongron

Make JSON greppable!

Stars14,489
Forks331
Last commit1 year ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub