Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sirwumpus/erlang-psql
A basic psql(1) like CLI tool to pass SQL statements to a PostgreSQL database.
https://github.com/sirwumpus/erlang-psql
cli erlang psql
Last synced: 5 days ago
JSON representation
A basic psql(1) like CLI tool to pass SQL statements to a PostgreSQL database.
- Host: GitHub
- URL: https://github.com/sirwumpus/erlang-psql
- Owner: SirWumpus
- License: mit
- Created: 2021-08-23T14:01:05.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T17:20:25.000Z (almost 2 years ago)
- Last Synced: 2024-11-11T08:08:03.271Z (5 days ago)
- Topics: cli, erlang, psql
- Language: Erlang
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Erlang psql(1) CLI
==================```
usage: epsql [-v][-h host][-p port][-t ms][-P pass][-U user] [database]-h host host to connect to; default "127.0.0.1"
-p port port number to connect to; default "5432"
-t ms connection timeout in milliseconds; default "5000"
-P pass user password
-U user user to connect as; default "$USER"
```A simple `psql(1)` like CLI tool that reads standard input for SQL statements passing them on to the connected PostgreSQL server.
### Create A Database
```
$ echo "CREATE DATABASE black;" | epsql -U postgres
$ epsql -U postgres black <