pg-exec v1.1.4
pg-exec
pg-exec is a command line interface that allows you to connect to a postgreSQL database and make queries
Installing globally:
Installation via npm:
$ npm install pg-exec -g
This will install pg-exec
globally so that it may be run from the command line.
Usage:
pg-exec [options]
Run:
pg-exec --exec
Available Options:
-e
or --exec
this option allows to start the configuration of the database to perform the consultations
database configuration
$ ? What's your username (postgres)
ask that you enter the username, by default it is (postgres)
$ ? Enter a masked password
ask to enter the password
$ ? What's your localhost (localhost)
asks you to enter the host, by default it is (localhost)
$ ? What's your post (5432)
ask to enter the port, by default it is (5432)
$ ? What's your database
ask that you enter the name of the database
and finally
$ ? What's your query
asks that you enter the queries to the database