Skip to content
Snippets Groups Projects
Commit e1a2edf6 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Merge branch 'stable'

Conflicts:
	doc/user/stored-procedures.xml
parents f74620da dcb5289a
No related branches found
No related tags found
No related merge requests found
......@@ -995,11 +995,12 @@ localhost> lua box.counter.dec(0, 'top.mail.ru')
<title>Package <code>box.tuple</code></title>
<variablelist xml:id="box.tuple" xreflabel="box.tuple">
<para>The package contains no functions, but stands for
<code>box.tuple</code> userdata type. It is possible to access individual
tuple fields using an index, select a range of fields, iterate
over all fields in a tuple or convert a tuple to a Lua table.
Tuples are immutable.</para>
<para>The package stands for <code>box.tuple</code> userdata
type. It is possible to access individual tuple fields using
an index, select a range of fields, iterate over all fields in
a tuple or convert a tuple to a Lua table. Tuples are
immutable.
</para>
<varlistentry>
<term><emphasis role="lua"> </emphasis></term>
<listitem><para>
......@@ -1087,6 +1088,19 @@ localhost> lua t:find(1, 'abc')
</para></listitem>
</varlistentry>
<varlistentry>
<term><emphasis role="lua">box.tuple.new(...)</emphasis></term>
<listitem><para>
Construct a new tuple from a Lua table or a scalar.
</para>
<bridgehead renderas="sect4">Example</bridgehead>
<programlisting>localhost> lua box.tuple.new({tonumber64('18446744073709551615'), 'string', 1})
---
- 18446744073709551615: {'string', 1}
...
</programlisting>
</listitem>
</varlistentry>
</variablelist>
</section>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment