Tarantool development patches archive
 help / color / mirror / Atom feed
From: Aleksandr Lyapunov <alyapunov@tarantool.org>
To: tarantool-patches@dev.tarantool.org
Cc: alexander.turenko@tarantool.org
Subject: [Tarantool-patches] [PATCH] Formatted select in lua console
Date: Fri, 10 Jul 2020 13:03:53 +0300	[thread overview]
Message-ID: <1594375434-743-1-git-send-email-alyapunov@tarantool.org> (raw)

Introduce space:fselect and index:fselect.
The example is better than explanation:

tarantool> _user:fselect{}
---
- - ​+-----+-----+-------------+------+--------------------------------------------+
  - ​| id  |owner|    name     | type |                    auth                    |
  - ​+-----+-----+-------------+------+--------------------------------------------+
  - ​|  0  |  1  |   "guest"   |"user"|{"chap-sha1":"vhvewKp0tNyweZQ+cFKAlsyphfg="}|
  - ​|  1  |  1  |   "admin"   |"user"|                     {}                     |
  - ​|  2  |  1  |  "public"   |"role"|                     {}                     |
  - ​|  3  |  1  |"replication"|"role"|                     {}                     |
  - ​| 31  |  1  |   "super"   |"role"|                     {}                     |
  - ​+-----+-----+-------------+------+--------------------------------------------+
...


Aleksandr Lyapunov (1):
  Introduce fselect - formatted select

 src/box/lua/schema.lua      | 105 ++++++++++++++++++++++++++++++++
 test/engine/select.result   | 142 ++++++++++++++++++++++++++++++++++++++++++++
 test/engine/select.test.lua |  25 ++++++++
 3 files changed, 272 insertions(+)

-- 
2.7.4

             reply	other threads:[~2020-07-10 10:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-10 10:03 Aleksandr Lyapunov [this message]
2020-07-10 10:03 ` [Tarantool-patches] [PATCH] Introduce fselect - formatted select Aleksandr Lyapunov
2020-09-14 19:02   ` Alexander Turenko
2020-07-10 10:08 ` [Tarantool-patches] [PATCH] Formatted select in lua console Aleksandr Lyapunov
2020-07-10 15:37 ` Oleg Babin
2020-07-13  8:52   ` Aleksandr Lyapunov

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=1594375434-743-1-git-send-email-alyapunov@tarantool.org \
    --to=alyapunov@tarantool.org \
    --cc=alexander.turenko@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH] Formatted select in lua console' \
    /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