-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the net.box tutorial #4054
Conversation
4807e18
to
d83023f
Compare
d7a06a2
to
5606ef5
Compare
4f9d100
to
16bd4cc
Compare
doc/code_snippets/snippets/connectors/instances.enabled/sample_db/myapp.lua
Outdated
Show resolved
Hide resolved
doc/code_snippets/snippets/connectors/instances.enabled/net_box/myapp.lua
Outdated
Show resolved
Hide resolved
doc/code_snippets/snippets/connectors/instances.enabled/net_box/myapp.lua
Outdated
Show resolved
Hide resolved
doc/code_snippets/snippets/connectors/instances.enabled/net_box/myapp.lua
Outdated
Show resolved
Hide resolved
We discussed the new tutorial with @andreyaksenov and agreed that the |
21442a9
to
6e334cc
Compare
1488da3
to
5e519b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've looked on the tutorial itself and it looks OK for me. Thanks!
I didn't look on the updates on the other pages. Let me know if it is important.
824f16d
to
88aa224
Compare
88aa224
to
f7bc9b6
Compare
doc/how-to/getting_started_db.rst
Outdated
|
||
Installing Tarantool | ||
-------------------- | ||
In this tutorial, you create a Tarantool database, write data to and select data from this database. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this tutorial, you create a Tarantool database, write data to and select data from this database. | |
In this tutorial, you create a Tarantool database, write data to it, and select data from this database. |
doc/how-to/getting_started_db.rst
Outdated
* :ref:`Install the tt <tt-installation>` utility. | ||
* `Install tarantool <https://www.tarantool.io/en/download/os-installation/>`_. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* :ref:`Install the tt <tt-installation>` utility. | |
* `Install tarantool <https://www.tarantool.io/en/download/os-installation/>`_. | |
* Install the :ref:`tt <tt-installation>` utility. | |
* Install `Tarantool <https://www.tarantool.io/en/download/os-installation/>`_. |
|
||
First, load the ``net.box`` module with the ``require('net.box')`` method: | ||
To try out ``net.box`` requests in the interactive console, you need to start the :ref:`sample_db <getting_started_net_box_sample_db>` application using ``tt start``: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To try out ``net.box`` requests in the interactive console, you need to start the :ref:`sample_db <getting_started_net_box_sample_db>` application using ``tt start``: | |
To try out ``net.box`` requests in the interactive console, start the :ref:`sample_db <getting_started_net_box_sample_db>` application using ``tt start``: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, reference link might be useful (tt start)
|
||
.. code-block:: tarantoolsession | ||
To create a connection, pass a database URI to the ``connect()`` method: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, add the corresponding reference links for the netbox methods (connect()
, ping()
, etc).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for space_object.*
functions
3cc3870
to
d60bdf7
Compare
d60bdf7
to
02be11e
Compare
Below are the changes related to updating the
net.box
tutorial to using a new configuration approach. Staging: Getting started with net.box.sample_db
application that can be used to demonstrate remote connections to Tarantool. This example is going to be reused in the upcoming tutorials for other connectors to simplify the maintenance of these samples and for consistency.net_box
sample that contains examples ofnet.box
requests to thesample_db
database.Getting started with net.box
tutorial.Related changes:
net.box
part from the Creating your first Tarantool database tutorial and made some cosmetic updates to make it simpler for newcomers.