Skip to content
Snippets Groups Projects
Commit a1b055d0 authored by bigbes's avatar bigbes
Browse files

Changes in box.space/box.index documentation

parent eb1f3633
No related branches found
No related tags found
No related merge requests found
......@@ -511,7 +511,7 @@ that are declared in line 1, because all of them are for use only within the fun
LINE 3: WHY "PAIRS()". Our job is to go through all the rows and there are two
ways to do it: with ``box.space.space-name:pairs()`` or with
:func:`index.iterator <box.space.space-name.index[.index-name]:pairs>`.
:func:`index.iterator <index_object.pairs>`.
We preferred ``pairs()`` because it is simpler.
LINE 4: WHY "PCALL". If we simply said "``lua_table = json.decode(t[2]))``", then
......
This diff is collapsed.
......@@ -55,6 +55,6 @@ The ``box.schema`` package has one data-definition function: ``space.create()``.
...
After a space is created, usually the next step is to
:func:`create an index <box.space.space-name.create_index>` for it,
:func:`create an index <space_object.create_index>` for it,
and then it is available for insert, select, and all the other :mod:`box.space`
functions.
This diff is collapsed.
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