No project description provided
Project description
sql-extract
Exports the results of Oracle sql code contained in a .sql file out to a csv file.
Usage
# run
sql-extract in_sql_file.sql -o output_file.csv
# additional help
sql-extract -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 |
-l, --login | Oracle login string | string | no |
-p, --password | Oracle password | string | no |
bind_vars | any bind variables in the .sql file | list | no |
Configuration
Store your Oracle login and password in full_login
and db_password
environment variables, respectively. Otherwise,
you must use --login
and --password
to pass in your credential(s). You can alternatively store your login as
an environment variable but not your password (or vice versa).
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.4.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for sql_extract-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c73b1c7238d9b95f157bef92c98b6c5a5d4e5eb673a364662476e8a7308b742 |
|
MD5 | 8a589ff79a754c195c2232ce54f50ffe |
|
BLAKE2b-256 | d8856f75bf1590823dbf8bb29ba2c76e53f3c6b59accc872ffa6d0e7c90b6048 |