No project description provided
Project description
sql_extract.py
Exports the results of Oracle sql code contained in a .sql file out to a csv file.
Usage
# make executable
chmod +x sql_extract.py
# run
./sql_extract.py in_sql_file.sql -o output_file.csv
# additional help
./sql_extract.py -h
Parameters
Name | Description | Type | Required |
---|---|---|---|
filename | input .sql file name | string | yes |
-o, --outfile | output .csv file name | string | no |
-d, --delimiter | csv delimiter | string | no |
-c, --quotechar | csv quote character | string | no |
bind_vars | any bind variables in the .sql file | list | no |
Configuration
- "full_login" and "db_password" environment variables set accordingly
Further Documentation
Additional documentation is available on the SQL Extract confluence page.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sql_extract-0.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for sql_extract-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a19647b19647908cf6ac231a8b91f69ba3e36018262fe2386e387a385a8ea92 |
|
MD5 | 8c21919be9c54ba3f5f54c9a740ef4a5 |
|
BLAKE2b-256 | eed24606cd2e194dd39ac9cf5afd1fdc50d075d60ba348a70176851d56588db7 |