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
9b53e879
Commit
9b53e879
authored
8 years ago
by
lenkis
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'ocelot/master' into 1.6
parents
ee857d47
daa9355a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/sphinx/book/configuration/cfg_storage.rst
+1
-1
1 addition, 1 deletion
doc/sphinx/book/configuration/cfg_storage.rst
doc/sphinx/reference/net_box.rst
+7
-14
7 additions, 14 deletions
doc/sphinx/reference/net_box.rst
with
8 additions
and
15 deletions
doc/sphinx/book/configuration/cfg_storage.rst
+
1
−
1
View file @
9b53e879
...
...
@@ -34,7 +34,7 @@
.. confval:: slab_alloc_minimal
Size of the smallest allocation unit. It can be decreased if most
of the tuples are very small. The value must be between 8 and 1048280.
of the tuples are very small. The value must be between 8 and 1048280
inclusive
.
Type: integer |br|
Default: 16 |br|
...
...
This diff is collapsed.
Click to expand it.
doc/sphinx/reference/net_box.rst
+
7
−
14
View file @
9b53e879
...
...
@@ -27,7 +27,7 @@ necessary to prioritize requests or to use different authentication ids.
.. module:: net_box
.. function:: new(
host, port[, {other parameter
[s]}])
.. function:: new(
URI [, {option
[s]}])
Create a new connection. The connection is established on demand, at the
time of the first request. It is re-established automatically after a
...
...
@@ -36,7 +36,7 @@ necessary to prioritize requests or to use different authentication ids.
For the local tarantool server there is a pre-created always-established
connection object named :samp:`{net_box}.self`. Its purpose is to make polymorphic
use of the ``net_box`` API easier. Therefore :samp:`conn = {net_box}.new('localhost
',
3301)`
use of the ``net_box`` API easier. Therefore :samp:`conn = {net_box}.new('localhost
:
3301
'
)`
can be replaced by :samp:`conn = {net_box}.self`. However, there is an important
difference between the embedded connection and a remote one. With the
embedded connection, requests which do not modify data do not yield.
...
...
@@ -44,11 +44,8 @@ necessary to prioritize requests or to use different authentication ids.
any request can yield, and database
state may have changed by the time it regains control.
:param string host:
:param number port:
:param boolean wait_connect:
:param string user:
:param string password:
:param string URI: the :ref:`URI` of the target for the connection
:param options: a possible option is `wait_connect`
:return: conn object
:rtype: userdata
...
...
@@ -56,12 +53,8 @@ necessary to prioritize requests or to use different authentication ids.
.. code-block:: lua
conn = net_box.new('localhost', 3301)
conn = net_box.new('127.0.0.1', box.cfg.listen, {
wait_connect = false,
user = 'boxer',
password = ''
})
conn = net_box.new('localhost:3301')
conn = net_box.new('127.0.0.1:3306', {wait_connect = false})
.. class:: conn
...
...
@@ -206,7 +199,7 @@ the database is nearly empty. Assume that the tarantool server is running on
> table.insert(ta, '( (maybe box.cfg{...listen="3301"...} was not stated)')
> table.insert(ta, '( (so connect will fail)')
> end
> conn = net_box.new('127.0.0.1
',
3301)
> conn = net_box.new('127.0.0.1
:
3301
'
)
> conn.space.tester:delete{800}
> table.insert(ta, 'conn delete done on tester.')
> conn.space.tester:insert{800, 'data'}
...
...
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