Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating list of meta commands based on current output of \? #63

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions content/pages/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Pgcli has implemented most of the meta-commands that are supported by `psql`. Th
+--------------------------------------+------------------------------------------------+
| Command | Description |
|--------------------------------------+------------------------------------------------|
| \! | Pass commands to shell. |
| \# | Refresh auto-completions. |
| \? | Show Commands. |
| \T [format] | Change the table format used to output results |
Expand All @@ -18,31 +19,42 @@ Pgcli has implemented most of the meta-commands that are supported by `psql`. Th
| \copy [tablename] to/from [filename] | Copy data between a file and a table. |
| \d[+] [pattern] | List or describe tables, views and sequences. |
| \dD[+] [pattern] | List or describe domains. |
| \dE[+] [pattern] | List foreign tables. |
| \dF[+] [pattern] | List text search configurations. |
| \dT[S+] [pattern] | List data types |
| \db[+] [pattern] | List tablespaces. |
| \ddp [pattern] | Lists default access privilege settings. |
| \df[+] [pattern] | List functions. |
| \di[+] [pattern] | List indexes. |
| \dm[+] [pattern] | List materialized views. |
| \dn[+] [pattern] | List schemas. |
| \dp [pattern] | List privileges. |
| \ds[+] [pattern] | List sequences. |
| \dt[+] [pattern] | List tables. |
| \du[+] [pattern] | List roles. |
| \dv[+] [pattern] | List views. |
| \dx[+] [pattern] | List extensions. |
| \e [file] | Edit the query with external editor. |
| \echo [string] | Echo a string to stdout |
| \h | Show SQL syntax and help. |
| \i filename | Execute commands from file. |
| \l[+] [pattern] | List databases. |
| \n[+] [name] [param1 param2 ...] | List or execute named queries. |
| \log-file [filename] | Log all query results to a logfile, in |
| | addition to the normal output destination. |
| \nd [name] | Delete a named query. |
| \np name_pattern | Print a named query. |
| \ns name query | Save a named query. |
| \o [filename] | Send all query results to file. |
| \pager [command] | Set PAGER. Print the query results via PAGER. |
| \pset [key] [value] | A limited version of traditional \pset |
| \q | Quit pgcli. |
| \qecho [string] | Echo a string to the query output channel. |
| \refresh | Refresh auto-completions. |
| \sf[+] FUNCNAME | Show a function's definition. |
| \timing | Toggle timing of commands. |
| \v [on|off] | Toggle verbose errors. |
| \watch [sec=2] | Execute query every `sec` seconds. |
| \x | Toggle expanded output. |
| quit | Quit pgcli. |
+--------------------------------------+------------------------------------------------+
Expand Down