Skip to content

Commit 36b38f9

Browse files
authored
gh-1825 Add tntcxx submodule and publish C++ connector Getting started (#1852)
1 parent 3e66219 commit 36b38f9

File tree

6 files changed

+22
-5
lines changed

6 files changed

+22
-5
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,7 @@ apikey.txt
6060
/locale/ru/LC_MESSAGES/reference/reference_rock/luatest/modules/
6161
/locale/ru/LC_MESSAGES/reference/reference_rock/luatest/classes/
6262

63+
# tntcxx submodule
64+
65+
/doc/getting_started/getting_started_cxx.rst
66+
/doc/getting_started/_includes/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@
1616
[submodule "modules/grafana-dashboard"]
1717
path = modules/grafana-dashboard
1818
url = https://github.com/tarantool/grafana-dashboard
19+
[submodule "modules/tntcxx"]
20+
path = modules/tntcxx
21+
url = https://github.com/tarantool/tntcxx.git

doc/book/connectors/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,4 @@ script:
126126
.. include:: __c.rst
127127

128128
.. include:: __results.rst
129+

doc/getting_started/getting_started_connectors.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
Connecting from your favorite language
55
================================================================================
66

7-
In the :doc:`previous section </getting_started/getting_started_db>`,
7+
In the :doc:`previous sections </getting_started/getting_started_db>`,
88
you have learned how to create a Tarantool database.
9-
Now let's see how to connect to it from Python, PHP, and Go.
9+
Now let's see how to connect to the database from different programming
10+
languages, such as Python, PHP, Go, and C++, and
11+
execute typical requests for manipulating the data (select, insert, delete,
12+
and so on).
1013

1114
.. toctree::
1215
:maxdepth: 2
@@ -15,6 +18,4 @@ Now let's see how to connect to it from Python, PHP, and Go.
1518
getting_started_python
1619
getting_started_php
1720
getting_started_go
18-
19-
20-
21+
getting_started_cxx

modules/tntcxx

Submodule tntcxx added at 7c5e898

update_submodules.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ luatest_dest="${project_root}/doc/reference/reference_rock/luatest"
3030
cartridge_kubernetes_root="${project_root}/modules/tarantool-operator/doc/cartridge_kubernetes_guide"
3131
cartridge_kubernetes_dest="${rst_dest}/"
3232

33+
tntcxx_root="${project_root}/modules/tntcxx"
34+
tntcxx_gs_dest="${project_root}/doc/getting_started/"
35+
tntcxx_api_dest="${project_root}/doc/book/connectors/"
36+
3337
cd "${luatest_root}"
3438
ldoc --ext=rst --dir=rst --toctree="API" .
3539
cd "${luatest_dest}"
@@ -46,6 +50,9 @@ yes | cp -rf "${cartridge_cli_root}/README.rst" "${cartridge_cli_index_dest}"
4650
mkdir -p "${cartridge_kubernetes_dest}"
4751
yes | cp -rf "${cartridge_kubernetes_root}" "${cartridge_kubernetes_dest}"
4852

53+
yes | cp -rf "${tntcxx_root}/doc/tntcxx_getting_started.rst" "${tntcxx_gs_dest}/getting_started_cxx.rst"
54+
yes | cp -rf "${tntcxx_root}/examples/" "${tntcxx_gs_dest}/_includes/"
55+
4956
cd "${cartridge_root}" || exit
5057
tarantoolctl rocks install \
5158
https://raw.githubusercontent.com/tarantool/LDoc/tarantool/ldoc-scm-2.rockspec \

0 commit comments

Comments
 (0)