@@ -119,7 +119,7 @@ using the ``\set output`` console command:
119119 app:storage001> \set output table
120120 app:storage001> box.space.bands:select { }
121121 +------+-------------+------+
122- | col1 | col2 | col3 |
122+ | id | band_name | year |
123123 +------+-------------+------+
124124 | 1 | Roxette | 1986 |
125125 +------+-------------+------+
@@ -128,20 +128,25 @@ using the ``\set output`` console command:
128128 | 3 | Ace of Base | 1987 |
129129 +------+-------------+------+
130130
131+ .. note ::
132+
133+ Field names are printed since Tarantool 3.2. On earlier versions,
134+ actual names are replaced by numbered placeholders ``col1 ``, ``col2 ``, and so on.
135+
131136The table output can be printed in the transposed format, where an object's fields
132137are arranged in columns instead of rows:
133138
134139.. code-block :: console
135140
136141 app:storage001> \set output ttable
137142 app:storage001> box.space.bands:select { }
138- +------+---------+-----------+-------------+
139- | col1 | 1 | 2 | 3 |
140- +------+---------+-----------+-------------+
141- | col2 | Roxette | Scorpions | Ace of Base |
142- +------+---------+-----------+-------------+
143- | col3 | 1986 | 1965 | 1987 |
144- +------+---------+-----------+-------------+
143+ +----------- +---------+-----------+-------------+
144+ | id | 1 | 2 | 3 |
145+ +----------- +---------+-----------+-------------+
146+ | band_name | Roxette | Scorpions | Ace of Base |
147+ +----------- +---------+-----------+-------------+
148+ | year | 1986 | 1965 | 1987 |
149+ +----------- +---------+-----------+-------------+
145150
146151 .. note ::
147152
@@ -162,9 +167,9 @@ following commands:
162167
163168 app:storage001> \set table_format jira
164169 app:storage001> box.space.bands:select {}
165- | col1 | 1 | 2 | 3 |
166- | col2 | Roxette | Scorpions | Ace of Base |
167- | col3 | 1986 | 1965 | 1987 |
170+ | id | 1 | 2 | 3 |
171+ | band_name | Roxette | Scorpions | Ace of Base |
172+ | year | 1986 | 1965 | 1987 |
168173
169174 * ``\set grahpics `` -- enable or disable graphics for table cells in the default format:
170175
@@ -173,20 +178,20 @@ following commands:
173178 app:storage001> \set table_format default
174179 app:storage001> \set graphics false
175180 app:storage001> box.space.bands:select {}
176- col1 1 2 3
177- col2 Roxette Scorpions Ace of Base
178- col3 1986 1965 1987
181+ id 1 2 3
182+ band_name Roxette Scorpions Ace of Base
183+ year 1986 1965 1987
179184
180185 * ``\set table_column_width `` -- maximum column width.
181186
182187 .. code-block :: console
183188
184189 app:storage001> \set table_column_width 6
185190 app:storage001> box.space.bands:select {}
186- col1 1 2 3
187- col2 Roxett Scorpi Ace of
188- +e +ons + Base
189- col3 1986 1965 1987
191+ id 1 2 3
192+ band_n Roxett Scorpi Ace of
193+ +ame +e +ons + Base
194+ year 1986 1965 1987
190195
191196
192197 .. _tt-interactive-console-commands :
0 commit comments