Skip to content

A cli tool for pg-web which uses the query api to make the SQL querys.

License

Notifications You must be signed in to change notification settings

shubham399/pgwebcli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pgwebcli

A cli tool for pg-web which uses the query api to make the SQL querys.

Installation

  1. Need to have python2.7.
  2. Install the requirements.txt using pip install -r requirements.txt
  3. SET enviroment variable PG_WEB_URL,COOKIE_KEY and COOKIE_VALUE. which you have to extract from the pg-web in a web browser.

How to Use.

  1. cat /path/to/sql.sql | python pgweb.py
  2. python pgweb.py

Note: There is a bug due to which you will have to press enter twice to get the shell.

About

A cli tool for pg-web which uses the query api to make the SQL querys.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages