From: Cyrill Gorcunov <gorcunov@gmail.com> To: Konstantin Osipov <kostja@tarantool.org> Cc: tarantool-patches@freelists.org, Alexander Turenko <alexander.turenko@tarantool.org> Subject: [tarantool-patches] Re: [RFC] box/lua/console: Add console.fmt module Date: Fri, 21 Jun 2019 15:33:57 +0300 [thread overview] Message-ID: <20190621123356.GA24106@uranus> (raw) In-Reply-To: <20190621121144.GA5998@atlas> On Fri, Jun 21, 2019 at 03:11:44PM +0300, Konstantin Osipov wrote: > > > > But it will break backward compatibility, is it ok? > > Yes, it's OK for 2.x series. OK > > > > 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. I see, thanks! Knowing that I should review the engine to make it more flexible. Also thought about line-oriented mode, say one defines (in lua mode) # > a = {1,2,3} # > a # {1,2,3} but then recode on the fly: # console.fmt(json,a) # {"a":[1,2,3]} or something like that.
next prev parent reply other threads:[~2019-06-21 12:34 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-06-20 21:54 [tarantool-patches] " Cyrill Gorcunov 2019-06-21 7:32 ` [tarantool-patches] " Konstantin Osipov 2019-06-21 7:36 ` Konstantin Osipov 2019-06-21 8:09 ` Cyrill Gorcunov 2019-06-21 12:11 ` Konstantin Osipov 2019-06-21 12:33 ` Cyrill Gorcunov [this message] 2019-06-21 8:16 ` Cyrill Gorcunov 2019-06-21 12:14 ` Konstantin Osipov 2019-06-21 12:41 ` Cyrill Gorcunov 2019-06-21 12:47 ` Konstantin Osipov 2019-06-21 13:17 ` Cyrill Gorcunov 2019-06-21 20:07 ` Cyrill Gorcunov 2019-06-21 20:33 ` Konstantin Osipov 2019-06-21 22:34 ` Cyrill Gorcunov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190621123356.GA24106@uranus \ --to=gorcunov@gmail.com \ --cc=alexander.turenko@tarantool.org \ --cc=kostja@tarantool.org \ --cc=tarantool-patches@freelists.org \ --subject='[tarantool-patches] Re: [RFC] box/lua/console: Add console.fmt module' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox