Skip to content

Commit

Permalink
Updating list of meta commands based on current output of \? (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
dougharris authored Mar 5, 2025
1 parent dfb52e9 commit 87b0725
Showing 1 changed file with 12 additions and 0 deletions.
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

0 comments on commit 87b0725

Please sign in to comment.