Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryosama/csv2sql

Request CSV files like SQL databases
https://github.com/ryosama/csv2sql

csv interface perl sql tool

Last synced: 24 days ago
JSON representation

Request CSV files like SQL databases

Awesome Lists containing this project

README

        

csv2sql
==========
Request CSV files like SQL databases

How it works
============
The script convert the CSV file into a SQLite database and request this database with SQL command.
Then it displays the result like others SQL request tools.

Usage
=====
--sql=select ... from csv_file.csv ...

--dont-create
Do not recreate the sqlite database, only request the existing one

--delimiter=;
Delimiter for CSV file. Default caracter is ;

--usage ou --help
Display this message

--debug
Display more information about the process

Example
=======
perl csv2sql.pl "--sql=SELECT * FROM my_records.csv WHERE seller_name LIKE 'bob%'"