How to use SQL to directly query files

This page summarizes the projects mentioned and recommended in the original post on dev.to

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • q

    q - Run SQL directly on delimited files and multi-file sqlite databases (by harelba)

    You might consider using q to query your files if you are working with .csv or .tsv files and need something that works faster than TextQL. q aims to bring SQL’s expressive capability to the Linux command line by offering direct access to multi-file SQLite3 databases and simple access to text as actual data.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • textql

    Execute SQL against structured text like CSV or TSV

    TextQL might be a suitable fit for you if you're looking for a simple tool to query .csv or .tsv files. TextqQL allows you to execute SQL on structured text with ease. It also allows you to use quote-escaped delimiters. When running a query, TextQL can automatically detect numeric and datetime data in appropriate formats, which helps you make your work easier. TextQL lets you list as many files and folders as you want. You can load the files or directories you’re working with by listing them at the end of the command.

  • octosql

    OctoSQL is a query tool that allows you to join, analyse and transform data from multiple databases and file formats using SQL.

    OctoSQL is primarily a command-line application that allows you to query a variety of databases and filetypes using SQL in a single interface, as well as perform JOINS between them. OctoSQL is a fully expandable, fully-featured dataflow engine that can be used to provide a SQL interface for your applications. It validates and optimizes queries based on database types. It may process massive volumes of data and return partial results before completing the complete query. Out of the box, OctoSQL only supports .csv and JSON files. You'll need to install a plugin to query other file formats, like Excel or Parquet files.

  • dsq

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

    DSQ is a command-line tool that lets you execute SQL queries. It supports a wide range of file formats, including .csv, JSON, .tsv, Excel, Parquet, and .ods.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Run SQL on CSV, Parquet, JSON, Arrow, Unix Pipes and Google Sheet

    9 projects | news.ycombinator.com | 24 Sep 2022
  • Show HN: I built jq-like scriptable tool to query CSV and JSON with SQLite

    3 projects | news.ycombinator.com | 24 Feb 2024
  • Analyzing multi-gigabyte JSON files locally

    14 projects | news.ycombinator.com | 18 Mar 2023
  • Tool to interact with CSV

    9 projects | /r/commandline | 27 Feb 2023
  • Yq is a portable yq: command-line YAML, JSON, XML, CSV and properties processor

    11 projects | news.ycombinator.com | 4 Feb 2023

Did you konow that Go is
the 4th most popular programming language
based on number of metions?