A CLI tool written in Rust to query data in CSV files using SQL.
- Maybe you just want a generic way to view a CSV file on the command line.
- Perhaps an academic assignment requires using Excel or Google Sheets to create graphs of data. Why learn Excel or Sheets functions when you already know SQL?
Data-Sifter takes a CSV file as data. It copies the data to a RDMS (currently PostgreSQL).
Then, it allows you to run a query against the data.
You have the option of displaying the query results either on the command line or written to another CSV file.
- Obtain a PostgreSQL connection URL. For this, you can create a free account with CockroachDb. The connection URL will look like
postgres://user:password@host:port/database
. - Enter the path to your CSV file.
- Write a SQL query.
- Decide whether you want the query results sent to STDOUT or written to another CSV file.
Downloads are available through Github Actions; there are no fixed releases.
Go to the Actions page, click on the latest successful build, and a download link will be available at the bottom of the page under "Artifacts."
Licensed under the Apache License 2.0. See the license file for more details.