From b678a621c57a6d3fdfac14bdbbef0ed743ab1742 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 8 Feb 2021 12:28:14 +0100 Subject: Adding upstream version 1.22.2. Signed-off-by: Daniel Baumann --- test/features/fixture_data/help.txt | 24 +++++++++++++++++++++++ test/features/fixture_data/help_commands.txt | 29 ++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 test/features/fixture_data/help.txt create mode 100644 test/features/fixture_data/help_commands.txt (limited to 'test/features/fixture_data') diff --git a/test/features/fixture_data/help.txt b/test/features/fixture_data/help.txt new file mode 100644 index 0000000..deb499a --- /dev/null +++ b/test/features/fixture_data/help.txt @@ -0,0 +1,24 @@ ++--------------------------+-----------------------------------------------+ +| Command | Description | +|--------------------------+-----------------------------------------------| +| \# | Refresh auto-completions. | +| \? | Show Help. | +| \c[onnect] database_name | Change to a new database. | +| \d [pattern] | List or describe tables, views and sequences. | +| \dT[S+] [pattern] | List data types | +| \df[+] [pattern] | List functions. | +| \di[+] [pattern] | List indexes. | +| \dn[+] [pattern] | List schemas. | +| \ds[+] [pattern] | List sequences. | +| \dt[+] [pattern] | List tables. | +| \du[+] [pattern] | List roles. | +| \dv[+] [pattern] | List views. | +| \e [file] | Edit the query with external editor. | +| \l | List databases. | +| \n[+] [name] | List or execute named queries. | +| \nd [name [query]] | Delete a named query. | +| \ns name query | Save a named query. | +| \refresh | Refresh auto-completions. | +| \timing | Toggle timing of commands. | +| \x | Toggle expanded output. | ++--------------------------+-----------------------------------------------+ diff --git a/test/features/fixture_data/help_commands.txt b/test/features/fixture_data/help_commands.txt new file mode 100644 index 0000000..657db7d --- /dev/null +++ b/test/features/fixture_data/help_commands.txt @@ -0,0 +1,29 @@ ++-------------+----------------------------+------------------------------------------------------------+ +| Command | Shortcut | Description | ++-------------+----------------------------+------------------------------------------------------------+ +| \G | \G | Display current query results vertically. | +| \dt | \dt[+] [table] | List or describe tables. | +| \e | \e | Edit command with editor (uses $EDITOR). | +| \f | \f [name [args..]] | List or execute favorite queries. | +| \fd | \fd [name] | Delete a favorite query. | +| \fs | \fs name query | Save a favorite query. | +| \l | \l | List databases. | +| \once | \o [-o] filename | Append next result to an output file (overwrite using -o). | +| \timing | \t | Toggle timing of commands. | +| connect | \r | Reconnect to the database. Optional database argument. | +| exit | \q | Exit. | +| help | \? | Show this help. | +| nopager | \n | Disable pager, print to stdout. | +| notee | notee | Stop writing results to an output file. | +| pager | \P [command] | Set PAGER. Print the query results via PAGER. | +| prompt | \R | Change prompt format. | +| quit | \q | Quit. | +| rehash | \# | Refresh auto-completions. | +| source | \. filename | Execute commands from file. | +| status | \s | Get status information from the server. | +| system | system [command] | Execute a system shell commmand. | +| tableformat | \T | Change the table format used to output results. | +| tee | tee [-o] filename | Append all results to an output file (overwrite using -o). | +| use | \u | Change to a new database. | +| watch | watch [seconds] [-c] query | Executes the query every [seconds] seconds (by default 5). | ++-------------+----------------------------+------------------------------------------------------------+ -- cgit v1.2.3