justlikeef / steampipe-plugin-csv

Use SQL to query data from CSV files. Open source CLI. No DB required.

Home Page:https://hub.steampipe.io/plugins/turbot/csv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image

CSV Plugin for Steampipe

Use SQL to query data from CSV files.

Quick start

Install the plugin with Steampipe:

steampipe plugin install csv

Configure your config file to include directories with CSV files. If no directory is specified, the current working directory will be used.

Run steampipe:

steampipe query

Run a query for the my_users.csv file:

select
  first_name,
  last_name
from
  my_users;

Developing

Prerequisites:

Clone:

git clone https://github.com/turbot/steampipe-plugin-csv.git
cd steampipe-plugin-csv

Build, which automatically installs the new version to your ~/.steampipe/plugins directory:

make

Configure the plugin:

cp config/* ~/.steampipe/config
vi ~/.steampipe/config/csv.spc

Try it!

steampipe query
> .inspect csv

Further reading:

Contributing

Please see the contribution guidelines and our code of conduct. All contributions are subject to the Apache 2.0 open source license.

help wanted issues:

About

Use SQL to query data from CSV files. Open source CLI. No DB required.

https://hub.steampipe.io/plugins/turbot/csv

License:Apache License 2.0


Languages

Language:Go 61.1%Language:JavaScript 28.1%Language:PLSQL 9.6%Language:Makefile 1.0%Language:Shell 0.2%