PostQL

CLI Documentation

Installation

To install PostQL, you can use pip, the Python package installer. Open your terminal and run the following command:

pip install postql

This command installs PostQL and its dependencies.

Usage

PostQL is a command-line interface for interacting with PostgreSQL databases. It allows you to connect to a database and execute SQL queries.

Basic Usage

To start using PostQL, you need to connect to a PostgreSQL database. Use the connect command followed by the necessary connection parameters:

bash postql connect -H localhost -u postgres -P password -d my_database

This command connects to a PostgreSQL database named my_database on localhost using the user postgres and the password password.

Commands

connect

Connects to a PostgreSQL database.

version

Displays the version of PostQL.

postql -v

help

Displays help for PostQL.

postql -h

Troubleshooting

Common Issues