A cli tool for pg-web which uses the query api to make the SQL querys.
- Need to have python2.7.
- Install the
requirements.txt
usingpip install -r requirements.txt
- SET enviroment variable
PG_WEB_URL
,COOKIE_KEY
andCOOKIE_VALUE
. which you have to extract from the pg-web in a web browser.
cat /path/to/sql.sql | python pgweb.py
python pgweb.py
Note: There is a bug due to which you will have to press enter twice to get the shell.