[tarantool-patches] Re: [RFC] box/lua/console: Add console.fmt module

Konstantin Osipov kostja at tarantool.org
Fri Jun 21 15:11:44 MSK 2019


* Cyrill Gorcunov <gorcunov at gmail.com> [19/06/21 11:10]:
> On Fri, Jun 21, 2019 at 10:36:43AM +0300, Konstantin Osipov wrote:
> > * Konstantin Osipov <kostja at tarantool.org> [19/06/21 10:32]:
> > 
> > Last thing: Lua output should become the default.
> 
> But it will break backward compatibility, is it ok?

Yes, it's OK for 2.x series.

> > It should perhaps also be possible to set the output
> > format of every console individually.
> 
> OK, i think it should be a next step. At the moment I'm
> gathering feedback to make code flexible enough for
> extensions.
> 
> Previously you pointed that we might need to support
> json/sql formats and such. Could you please elaborate
> with some examples so I would treat them as a vectore
> where to move in general design.

For JSON, please take a look at how MongoDB presents its output.

For SQL, PostgreSQL or MySQL or CockroachDB would be nice -they
even colorize table headings. In any case, SQL demands tabular
form. Tabular output is difficult. Especially with non-ascii
characters and alphabets, which have digraphs,
and ligatures.

-- 
Konstantin Osipov, Moscow, Russia




More information about the Tarantool-patches mailing list