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