Skip to content

koppen/csv_query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSV Query - Use SQL to query CSV data

CSV Query is a command line tool that allows you to run SQL queries on data stored in CSV files.

For example:

$ csvq --select "count(*)" --where "name='Jakob'" sample.csv
count(*)
--------
       1

Build Status Code Climate

Assumptions

The first row of data is assumed to be headers.

All fields are created as VARCHAR(255), which hopefully works for most cases.

Behind the scenes

CSV Query loads the CSV data into an in-memory SQLite database. Thus, the SQL queries need to be SQLite-flavored where applicable.

Alternative/related projects

License

Licensed under the MIT License. See LICENSE for details.

About

Command line tool to query CSV data using SQL

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages