A CLI tool that executes SQL queries on CSV, LTSV, JSON, YAML, and TBLN files, with output to various formats.
trdsql is a command-line tool that allows you to run SQL queries on various text-based data files like CSV, LTSV, JSON, YAML, and TBLN. It solves the problem of needing to import data into a database before querying, enabling direct SQL operations on files for quick data analysis and transformation.
Developers, data analysts, and system administrators who work with structured text files and want to leverage SQL for data querying, filtering, and conversion without setting up a full database.
trdsql stands out by supporting multiple SQL dialects (SQLite, PostgreSQL, MySQL) and a wide range of input/output formats, making it highly versatile for diverse data workflows. Its ability to handle compressed files and provide file analysis further enhances productivity.
CLI tool that can execute SQL queries on CSV, LTSV, JSON, YAML and TBLN. Can output to various formats.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports input from CSV, LTSV, JSON, YAML, TBLN and output to formats like CSV, JSON, Markdown, and ASCII tables, enabling flexible data transformations without external converters.
Allows using SQLite, PostgreSQL, or MySQL syntax, providing compatibility with different database ecosystems and advanced functions like window functions in PostgreSQL.
Automatically reads and writes gzip, bz2, zstd, lz4, and xz compressed files, handling decompression and compression seamlessly without extra steps.
The -a option analyzes file structure and suggests SQL queries, helping users quickly start querying unfamiliar data, as shown in the Analyze section.
NULL values are not natively supported in non-JSON formats; users must specify strings to treat as NULL, adding configuration overhead and potential errors.
CGO-free builds result in slower execution times, and loading files into temporary databases can be memory-intensive for large datasets, limiting scalability.
Using PostgreSQL or MySQL requires setting up and connecting to external databases, adding setup complexity compared to the default SQLite mode.
Data is often imported as text, requiring explicit casting or JSON functions for structured data, which can be cumbersome for complex nested JSON.
trdsql is an open-source alternative to the following products: