dbcli / pgcli

Postgres CLI with autocompletion and syntax highlighting
http://pgcli.com
BSD 3-Clause "New" or "Revised" License
12.04k stars 553 forks source link

\prompt not working with pgcli #1191

Open abhijhanwar opened 4 years ago

abhijhanwar commented 4 years ago

Description

To work with interactive SQLs, we need to provide input at sql runtime, for this we need \prompt to work, but it's not working with pgcli as shown below:

pgdb1> \i tab_size.sql syntax error at or near "\" LINE 1: \prompt 'enter schema name here: ' schema_name ^

as can be seen above \prompt is not identified as keyword.

Please have a look.

Your environment

j-bennet commented 4 years ago

pgcli does not support all meta-commands ("backslash commands") that exist in psql. \? will display all supported pgcli commands.

I can leave this open as feature request - but it's not a bug.