LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

sqly

Execute SQL against CSV, TSV, JSON, and Excel files

TLDR

Open an interactive SQL shell with a CSV file
$ sqly [user.csv]
copy
Run a query directly
$ sqly --sql "[SELECT * FROM user WHERE age > 30]" [user.csv]
copy
Output results as CSV
$ sqly --sql "[SELECT * FROM user LIMIT 2]" --csv [user.csv]
copy

SYNOPSIS

sqly [--sql query] [--csv|--tsv] [files...]

DESCRIPTION

sqly imports CSV, TSV, LTSV, JSON, and Excel files into an in-memory SQLite3 database, letting you run SQL queries against them. It supports both an interactive shell mode with SQL completion and command history, and direct one-shot query execution. Output can be formatted as ASCII table, CSV, TSV, or LTSV.

HISTORY

sqly was created by nao1215 and is written in Go.

SEE ALSO

csvq(1), qsv(1), miller(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid