You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The patchset introduces addition commands for the tt connect console.
It adds several common commands that relate to a general functionality:
\help, ? - to show help message with additional information and
a list of all commands.
\quit, \q - quit from the console. Previously this command worked
on the tarantool side, but now it works on the tt side and does
not require execution rights for a user.
In addition, the patch adds commands for extended output modes:
\set output <format> - set format lua, table, ttable or
yaml (default)
\set table_format <format> - set table format default, jira
or markdown
\set graphics <false/true> - disables/enables (default)
pseudographics for table modes
\set table_column_width <width> - set max column width for
table/ttable
\xw <width> - set max column width for table/ttable
\x - switches output format cyclically
\x[l,t,T,y] - set output format lua, table, ttable or yaml
\x[g,G] - disables/enables pseudographics for table modes
Supported formats:
yaml - shows data as a YAML document. The format is
used now by tarantool and tt.
lua - shows data as Lua-compatible structs.
table - shows data as a pseudo graphical table.
ttable - the same as the table format, but a result table is
transposed (rotate data from rows to columns).
Supported table formats (for table or ttable formats):
default - shows data as a pseudo graphical table.
markdown - shows data as a Markdown-compatible table.
jira - shows data as a Jira-compatible table.
Example:
> \set output table
> box.space.customers:select()
+------+-----------+------+
| col1 | col2 | col3 |
+------+-----------+------+
| 1 | Elizabeth | 12 |
+------+-----------+------+
> \xg
> box.space.customers:select()
col1 col2 col3
1 Elizabeth 12
2 Mary 46
3 David 33
Uh oh!
There was an error while loading. Please reload this page.
Product: tt CLI
Since: ?
Audience/target: all
Root document: ? https://www.tarantool.io/en/doc/latest/reference/tooling/interactive_console/
? https://www.tarantool.io/en/doc/latest/reference/tooling/tt_cli/connect/
SME: @ GRISHNOV
Details
The patchset introduces addition commands for the
tt connect
console.It adds several common commands that relate to a general functionality:
\help
,?
- to show help message with additional information anda list of all commands.
\quit
,\q
- quit from the console. Previously this command workedon the
tarantool
side, but now it works on thett
side and doesnot require execution rights for a user.
In addition, the patch adds commands for extended output modes:
\set output <format>
- set format lua, table, ttable oryaml (default)
\set table_format <format>
- set table format default, jiraor markdown
\set graphics <false/true>
- disables/enables (default)pseudographics for table modes
\set table_column_width <width>
- set max column width fortable/ttable
\xw <width>
- set max column width for table/ttable\x
- switches output format cyclically\x[l,t,T,y]
- set output format lua, table, ttable or yaml\x[g,G]
- disables/enables pseudographics for table modesSupported formats:
yaml
- shows data as a YAML document. The format isused now by
tarantool
andtt
.lua
- shows data as Lua-compatible structs.table
- shows data as a pseudo graphical table.ttable
- the same as the table format, but a result table istransposed (rotate data from rows to columns).
Supported table formats (for
table
orttable
formats):default
- shows data as a pseudo graphical table.markdown
- shows data as a Markdown-compatible table.jira
- shows data as a Jira-compatible table.Example:
Requested by @GRISHNOV in tarantool/tt@5189d4f.
Definition of done
The text was updated successfully, but these errors were encountered: