Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
dbad9e4a
Commit
dbad9e4a
authored
9 years ago
by
ocelot-inc
Browse files
Options
Downloads
Patches
Plain Diff
upsert, correction
parent
8d4b679f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/sphinx/book/box/box_index.rst
+1
-3
1 addition, 3 deletions
doc/sphinx/book/box/box_index.rst
doc/sphinx/book/box/box_space.rst
+6
-3
6 additions, 3 deletions
doc/sphinx/book/box/box_space.rst
doc/sphinx/book/box/index.rst
+2
-2
2 additions, 2 deletions
doc/sphinx/book/box/index.rst
with
9 additions
and
8 deletions
doc/sphinx/book/box/box_index.rst
+
1
−
3
View file @
dbad9e4a
...
@@ -495,9 +495,7 @@ API is a direct binding to corresponding methods of index objects of type
...
@@ -495,9 +495,7 @@ API is a direct binding to corresponding methods of index objects of type
:param lua-value key: key to be matched against the index key
:param lua-value key: key to be matched against the index key
:param table {operator, field_no, value}: update opearations (see: func:`box.space...update() <space_object.update>`)
:param table {operator, field_no, value}: update opearations (see: func:`box.space...update() <space_object.update>`)
:return: the updated or inserted tuple.
:return: null.
:rtype: tuple
.. function:: delete(key)
.. function:: delete(key)
...
...
This diff is collapsed.
Click to expand it.
doc/sphinx/book/box/box_space.rst
+
6
−
3
View file @
dbad9e4a
...
@@ -372,7 +372,10 @@ A list of all ``box.space`` functions follows, then comes a list of all
...
@@ -372,7 +372,10 @@ A list of all ``box.space`` functions follows, then comes a list of all
:code:`{{operator, field_no, value}, ...}` parameter is used.
:code:`{{operator, field_no, value}, ...}` parameter is used.
If there is no existing tuple which matches :code:`key`, then the
If there is no existing tuple which matches :code:`key`, then the
request has the same effect as :ref:`insert <box_insert>` and the
request has the same effect as :ref:`insert <box_insert>` and the
:code:`{tuple}` parameter is used.
:code:`{tuple}` parameter is used. However, unlike :code:`insert` or
:code:`update`, :code:`upsert` will not read a tuple and perform
error checks before returning -- this is a design feature which
enhances throughput but requires more caution on the part of the user.
:param space_object space-object:
:param space_object space-object:
:param lua-value key: primary-key field values, must be passed as a Lua
:param lua-value key: primary-key field values, must be passed as a Lua
...
@@ -383,8 +386,8 @@ A list of all ``box.space`` functions follows, then comes a list of all
...
@@ -383,8 +386,8 @@ A list of all ``box.space`` functions follows, then comes a list of all
field number can be negative, meaning the position from the
field number can be negative, meaning the position from the
end of tuple (#tuple + negative field number + 1).
end of tuple (#tuple + negative field number + 1).
:return:
the updated or inserted tuple
.
:return:
null
.
:rtype: tuple
Possible errors: it is illegal to modify a primary-key field.
Possible errors: it is illegal to modify a primary-key field.
...
...
This diff is collapsed.
Click to expand it.
doc/sphinx/book/box/index.rst
+
2
−
2
View file @
dbad9e4a
...
@@ -424,8 +424,8 @@ Data manipulation
...
@@ -424,8 +424,8 @@ Data manipulation
The basic "data-manipulation" requests are:
The basic "data-manipulation" requests are:
:codenormal:`insert`, :codenormal:`replace`, :codenormal:`update`, :codenormal:`upsert`,
:codenormal:`insert`, :codenormal:`replace`, :codenormal:`update`, :codenormal:`upsert`,
:codenormal:`delete`, :codenormal:`select`.
:codenormal:`delete`, :codenormal:`select`.
They all
are part of the :codenormal:`box` library.
All of them
are part of the :codenormal:`box` library.
They all
may return data. Usually both inputs and outputs may be Lua tables.
Most of them
may return data. Usually both inputs and outputs may be Lua tables.
The Lua syntax for data-manipulation functions can vary.
The Lua syntax for data-manipulation functions can vary.
Here are examples of the variations with :codenormal:`select` examples;
Here are examples of the variations with :codenormal:`select` examples;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment