Skip to content

Commit

Permalink
REAME: sql2csv usage of the -C option
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed Feb 8, 2022
1 parent a0feedb commit a3f6180
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ but with no entity by themselves to have their own repository.

## `venv` script

This script is useful to run Python scripts under a given virtual environment.
It is specially useful to run Python scripts from crontab lines.
Simplifies running a Python script under a given virtual environtment.
This is specially useful to run Python scripts from crontab lines.

```bash
usage: venv /PATH/TO/PYTHON/VIRTUALENV COMMAND [PARAM1 [PARAM2...]]
Expand All @@ -33,6 +33,10 @@ usage: venv /PATH/TO/PYTHON/VIRTUALENV COMMAND [PARAM1 [PARAM2...]]
Runs an SQL file and outputs the result of the query as tabulator separated csv.a
A local dbconfig.py file is required, or you should provide it as `-C file.py`
It should contain a dict named `pyscopg` with the keyword parameters to
[psycopg2.connect](https://www.psycopg.org/docs/module.html#psycopg2.connect).
You can provide query parameters either as yamlfile or as commandline options.
```bash
Expand Down

0 comments on commit a3f6180

Please sign in to comment.