Metadata-Version: 2.1
Name: sqlcsvsql
Version: 0.0.1
Summary: a lightweight package to convert sql files to csv and vice versa
Home-page: https://github.com/riyadhrazzaq/sqlcsvsql.git
Author: Md. Abdur Razzaq Riyadh
Author-email: riyadh.razzaq@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/riyadhrazzaq/sqlcsvsql.git/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# sql-to-csv-to-sql
A Simple Command Line Utility for converting SQL statements to CSV and vice versa.

# Installation
`pip install `

# Usage
```
python -m sqlcsvsql OPTIONS
  -h, --help            show this help message and exit
  -f FILEPATH, --filepath FILEPATH
                        sql or csv file path
  -t TABLE_NAME, --table_name TABLE_NAME
                        table name for csv file
  -m {single,multi}, --statement_mode {single,multi}
                        single or multiline DML to generate
```
## Convert `SQL` to `CSV`
```
python -m sqlcsvsql -f file.sql
```
converted file will be saved in the same directory with file name `file.sql.csv`

## Convert `CSV` to `SQL`
```
python -m sqlcsvsql -f file.csv -t example_table -m single
```
converted file will be saved in the same directory with file name `file.csv.sql`


