# mithrandie/csvq

SQL-like query language for csv

Repository: https://github.com/mithrandie/csvq
Canonical: https://ross.abutalabs.com/products/csvq
Homepage: https://mithrandie.github.io/csvq
Language: Go
License: MIT
License Family: permissive
Topics: golang, sql, csv, command-line-tool
Last push: 2024-07-25T10:25:08+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3391, "days_push": 769, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1627, forks 68 (observed 2026-08-28T04:05:13.205281+00:00)

## What it is
csvq is a command line tool written in Go that lets you query and manipulate CSV files using a SQL-like language, including select, insert, update, and delete operations. It supports transactions, variables, cursors, temporary tables, an interactive shell, and multiple file formats such as TSV, LTSV, fixed-length, JSON, and JSON Lines.

## Use cases
- run SQL queries against CSV files from the command line
- update or delete records in a CSV file without a spreadsheet
- filter and join CSV data with SQL-like syntax
- process CSV files in batch scripts with transactions and variables
- query JSON Lines or TSV files with SQL
- interactively explore flat-file data in a shell
- share query scripts with coworkers across platforms

## When to choose
- you want a single dependency-free binary for ad-hoc CSV querying
- your data fits in memory at spreadsheet scale
- you need to update, insert, or delete CSV records, not just read them
- you want transactions, cursors, or variables in flat-file processing
- you need to handle multiple encodings like UTF-16 or Shift_JIS

## When to avoid
- you need to process very large datasets that exceed memory
- you need indexed or optimized query execution for speed
- you need a persistent database with concurrent access
- you need a library API rather than a CLI (though csvq-driver exists for Go)

## Facets
- artifact type: cli-tool
- maturity: active
- function: parser, cli, database, csv, json, developer-tools
- domain: files, developer-tools
- platform: cli, cross-platform, windows, go
- tags: sql-like-query, csv-manipulation, interactive-shell, transactions, tsv, ltsv, single-binary, in-memory-processing, command-line, data-engineering, csv, linux, macos

## Member repositories
- mithrandie/csvq (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:13.205281+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:48:25.617579+00:00, confidence not recorded.
  - readme: https://github.com/mithrandie/csvq (fetched 2026-08-28T04:05:13.205281+00:00, sha 6acb4cfd6bc8)
  - homepage: https://mithrandie.github.io/csvq (fetched 2026-08-29T11:21:07.554687+00:00, sha 5dc821430104)
- Data as of 2026-08-30T08:39:29.467469+00:00.
