[Tarantool-patches] [PATCH 3/4] box: provide a user friendly frontend for accessing session settings
Nikita Pettik
korablev at tarantool.org
Mon Mar 16 19:08:42 MSK 2020
On 17 Feb 15:12, Chris Sosnin wrote:
> - space_object:update() is hard to use for configuring session settings,
> so we provide box.session.setting table, which can be used in a much more
> native way.
>
> - Prior to this patch sql settings were not accessible before box.cfg()
> call, even though these flags can be set right after session creation.
>
> Part of #4711
> ---
tarantool> box.session.settings.sql_vdbe_debug
---
- false
...
tarantool> box.session.settings.sql_vdbe_debug = true
---
...
tarantool> box.session.settings.sql_vdbe_debug
---
- true
...
tarantool> box.execute("select 1")
---
- metadata:
- name: '1'
type: integer
rows:
- [1]
...
Looks inconsistent. Can we use instead of :set() method simple
table value assignment? Otherwise accessing row table values
should be disallowed. Same concerns :get() method. Why ever
anyone should bother with :get() when one can access table value
via simple indexing?
More information about the Tarantool-patches
mailing list