From d597fdc608bc6eb10611b55d76b0bf728128ec65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B9=20=D0=91=D0=B5?= =?UTF-8?q?=D0=BB=D0=BE=D0=BD=D0=BE=D0=B3=D0=BE=D0=B2?= Date: Wed, 21 Jan 2026 13:47:49 +0300 Subject: [PATCH 1/3] doc(call): add examples Add examples to interact with stored procedures from java Closes #37 --- .../TarantoolCallCartridgeDriverExample.java | 66 +++++++++++++++ .../TarantoolCallEvalAbstractExample.java | 50 ++++++++++++ .../src/client/TarantoolCallTJSDKExample.java | 80 +++++++++++++++++++ ...ngleInstanceConnectionAbstractExample.java | 6 +- ...tanceConnectionCartridgeDriverExample.java | 1 - ...lSingleInstanceConnectionTJSDKExample.java | 1 - .../pages/client/examples/call/call.en.md | 40 ++++++++++ .../pages/client/examples/call/call.md | 41 ++++++++++ .../pages/client/examples/call/index.en.md | 8 ++ .../pages/client/examples/call/index.md | 8 ++ .../examples/connection/single-node.en.md | 4 +- .../client/examples/connection/single-node.md | 4 +- documentation/mkdocs.yml | 4 + 13 files changed, 303 insertions(+), 10 deletions(-) create mode 100644 documentation/doc-src/java/src/client/TarantoolCallCartridgeDriverExample.java create mode 100644 documentation/doc-src/java/src/client/TarantoolCallEvalAbstractExample.java create mode 100644 documentation/doc-src/java/src/client/TarantoolCallTJSDKExample.java create mode 100644 documentation/doc-src/pages/client/examples/call/call.en.md create mode 100644 documentation/doc-src/pages/client/examples/call/call.md create mode 100644 documentation/doc-src/pages/client/examples/call/index.en.md create mode 100644 documentation/doc-src/pages/client/examples/call/index.md diff --git a/documentation/doc-src/java/src/client/TarantoolCallCartridgeDriverExample.java b/documentation/doc-src/java/src/client/TarantoolCallCartridgeDriverExample.java new file mode 100644 index 0000000..7985820 --- /dev/null +++ b/documentation/doc-src/java/src/client/TarantoolCallCartridgeDriverExample.java @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2025 VK DIGITAL TECHNOLOGIES LIMITED LIABILITY COMPANY + * All Rights Reserved. + */ + +package client; + +// --8<-- [start:all] + +import java.net.InetSocketAddress; +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import testcontainers.utils.TarantoolSingleNodeConfigUtils; + +import io.tarantool.driver.api.TarantoolClient; +import io.tarantool.driver.api.TarantoolClientFactory; +import io.tarantool.driver.api.TarantoolResult; +import io.tarantool.driver.api.tuple.TarantoolTuple; + +public class TarantoolCallCartridgeDriverExample extends TarantoolCallEvalAbstractExample { + + @Test + @SuppressWarnings("unchecked") + void simpleCall() { + try (TarantoolClient> client = setupClient()) { + loadFunctions(); + + final List helloWorldReturns = client.call(HELLO_WORLD_FUNCTION).join(); + Assertions.assertEquals(1, helloWorldReturns.size()); + Assertions.assertEquals(HELLO_WORLD_FUNCTION_RETURNS, helloWorldReturns.get(0)); + + // convert returning lua map into Java pojo representing as map + final String name = "Petya"; + final int age = 25; + + final List resultAsMap = client.call(SOME_MAP_FUNCTION, Arrays.asList(name, age)).join(); + + Assertions.assertEquals(1, resultAsMap.size()); + Assertions.assertInstanceOf(Map.class, resultAsMap.get(0)); + final Map castedResult = (Map) resultAsMap.get(0); + Assertions.assertEquals(name, castedResult.get("name")); + Assertions.assertEquals(age, castedResult.get("age")); + + } catch (Exception e) { + throw new RuntimeException(e); + } + } + + private static TarantoolClient> setupClient() { + // Получаем адрес и порт из докера + // Gets address and port from docker + final InetSocketAddress nodeAddress = CONTAINER.mappedAddress(); + + return TarantoolClientFactory.createClient() + .withAddress(nodeAddress.getHostName(), nodeAddress.getPort()) + .withCredentials( + TarantoolSingleNodeConfigUtils.LOGIN, TarantoolSingleNodeConfigUtils.PWD.toString()) + .build(); + } +} + +// --8<-- [end:all] diff --git a/documentation/doc-src/java/src/client/TarantoolCallEvalAbstractExample.java b/documentation/doc-src/java/src/client/TarantoolCallEvalAbstractExample.java new file mode 100644 index 0000000..6ba2c02 --- /dev/null +++ b/documentation/doc-src/java/src/client/TarantoolCallEvalAbstractExample.java @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2025 VK DIGITAL TECHNOLOGIES LIMITED LIABILITY COMPANY + * All Rights Reserved. + */ + +package client; + +// --8<-- [start:all] + +import java.io.IOException; + +import testcontainers.utils.TarantoolSingleNodeConfigUtils; + +public abstract class TarantoolCallEvalAbstractExample + extends TarantoolSingleInstanceConnectionAbstractExample { + + protected static String HELLO_WORLD_FUNCTION = "hello_world_function"; + protected static String HELLO_WORLD_FUNCTION_RETURNS = "hello world"; + protected static String SOME_MAP_FUNCTION = "some_map_function"; + + protected static final String LUA_FUNCTION = + String.format( + """ + %s = function() + return '%s' + end + + %s = function(name, age) + return { + name = name, + age = age + } + end + """, + HELLO_WORLD_FUNCTION, HELLO_WORLD_FUNCTION_RETURNS, SOME_MAP_FUNCTION); + + protected void loadFunctions() throws IOException, InterruptedException { + final String command = + "echo \"%s\" | tt connect %s:%s@localhost:3301" + .formatted( + LUA_FUNCTION, + TarantoolSingleNodeConfigUtils.LOGIN, + TarantoolSingleNodeConfigUtils.PWD); + CONTAINER.execInContainer("/bin/sh", "-c", command); + } + + protected record TestUser(String name, Integer age) {} +} + +// --8<-- [end:all] diff --git a/documentation/doc-src/java/src/client/TarantoolCallTJSDKExample.java b/documentation/doc-src/java/src/client/TarantoolCallTJSDKExample.java new file mode 100644 index 0000000..a52bbd3 --- /dev/null +++ b/documentation/doc-src/java/src/client/TarantoolCallTJSDKExample.java @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2025 VK DIGITAL TECHNOLOGIES LIMITED LIABILITY COMPANY + * All Rights Reserved. + */ + +package client; + +// --8<-- [start:all] + +import java.net.InetSocketAddress; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Map; + +import com.fasterxml.jackson.core.type.TypeReference; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import testcontainers.utils.TarantoolSingleNodeConfigUtils; + +import io.tarantool.client.TarantoolClient; +import io.tarantool.client.factory.TarantoolFactory; +import io.tarantool.pool.InstanceConnectionGroup; + +public class TarantoolCallTJSDKExample extends TarantoolCallEvalAbstractExample { + + @Test + void simpleCall() { + try (TarantoolClient client = setupClient()) { + loadFunctions(); + + final List helloWorldReturns = + client.call(HELLO_WORLD_FUNCTION, String.class).join().get(); + Assertions.assertEquals(1, helloWorldReturns.size()); + Assertions.assertEquals(HELLO_WORLD_FUNCTION_RETURNS, helloWorldReturns.get(0)); + + // convert returning lua map into Java pojo representing as map + final String name = "Petya"; + final int age = 25; + + final List resultAsPojo = + client.call(SOME_MAP_FUNCTION, Arrays.asList(name, age), TestUser.class).join().get(); + + Assertions.assertEquals(1, resultAsPojo.size()); + Assertions.assertEquals(name, resultAsPojo.get(0).name()); + Assertions.assertEquals(age, resultAsPojo.get(0).age()); + + // convert returning lua map into java list of map via type reference + // java map key type is string because lua map key type is string! + final List> objectObjectMap = + client + .call( + SOME_MAP_FUNCTION, + Arrays.asList(name, age), + new TypeReference>>() {}) + .join() + .get(); + + } catch (Exception e) { + throw new RuntimeException(e); + } + } + + private static TarantoolClient setupClient() throws Exception { + final InetSocketAddress address = CONTAINER.mappedAddress(); + + final InstanceConnectionGroup connectionGroup = + InstanceConnectionGroup.builder() + .withHost(address.getHostName()) + .withPort(address.getPort()) + .withUser(TarantoolSingleNodeConfigUtils.LOGIN) + .withPassword(TarantoolSingleNodeConfigUtils.PWD.toString()) + .withSize(3) + .build(); + + return TarantoolFactory.box().withGroups(Collections.singletonList(connectionGroup)).build(); + } +} + +// --8<-- [end:all] diff --git a/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionAbstractExample.java b/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionAbstractExample.java index a58023c..fca656a 100644 --- a/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionAbstractExample.java +++ b/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionAbstractExample.java @@ -5,7 +5,7 @@ package client; -// --8<-- [start:tarantool-single-instance-abstract] +// --8<-- [start:all] import java.io.IOException; import java.nio.file.Path; @@ -40,12 +40,10 @@ static void afterAll() { CONTAINER.stop(); } - protected abstract void simpleConnection(); - protected static TarantoolContainer createSingleNodeContainer(Path tempPath) throws IOException { final Path pathToConfig = TarantoolSingleNodeConfigUtils.createConfig(tempPath); return new Tarantool3Container(image, "test-node").withConfigPath(pathToConfig); } } -// --8<-- [end:tarantool-single-instance-abstract] +// --8<-- [end:all] diff --git a/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionCartridgeDriverExample.java b/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionCartridgeDriverExample.java index 682dba6..fc69990 100644 --- a/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionCartridgeDriverExample.java +++ b/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionCartridgeDriverExample.java @@ -23,7 +23,6 @@ public class TarantoolSingleInstanceConnectionCartridgeDriverExample extends TarantoolSingleInstanceConnectionAbstractExample { @Test - @Override protected void simpleConnection() { try (TarantoolClient> client = setupClient()) { final List result = client.eval("return _TARANTOOL").join(); diff --git a/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionTJSDKExample.java b/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionTJSDKExample.java index dc22e88..50828c0 100644 --- a/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionTJSDKExample.java +++ b/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionTJSDKExample.java @@ -25,7 +25,6 @@ public class TarantoolSingleInstanceConnectionTJSDKExample extends TarantoolSingleInstanceConnectionAbstractExample { @Test - @Override protected void simpleConnection() { // Получаем адрес и порт из докера // Gets address and port from docker diff --git a/documentation/doc-src/pages/client/examples/call/call.en.md b/documentation/doc-src/pages/client/examples/call/call.en.md new file mode 100644 index 0000000..add03c7 --- /dev/null +++ b/documentation/doc-src/pages/client/examples/call/call.en.md @@ -0,0 +1,40 @@ +--- +title: Interacting with stored procedures +--- + +The following example demonstrates interacting with stored procedures from java: + +=== "tarantool-java-sdk" + + ```title="Interacting with stored procedures from java" + --8<-- "client/TarantoolCallTJSDKExample.java:all" + ``` + + ```title="Abstract class to create Tarantool container" + --8<-- "client/TarantoolCallEvalAbstractExample.java:all" + ``` + + ```title="Abstract class to create Tarantool container" + --8<-- "client/TarantoolSingleInstanceConnectionAbstractExample.java:all" + ``` + +=== "cartridge-driver" + + ```title="Interacting with stored procedures from java" + --8<-- "client/TarantoolCallCartridgeDriverExample.java:all" + ``` + + ```title="Abstract class to create Tarantool container" + --8<-- "client/TarantoolCallEvalAbstractExample.java:all" + ``` + + ```title="Abstract class to create Tarantool container" + --8<-- "client/TarantoolSingleInstanceConnectionAbstractExample.java:all" + ``` + +???+ note + + `tarantool-java-sdk` allows you to convert stored procedure return values to pojos, which have + fields with default types, automatically. In `cartridge-driver` for this requires implementing + converters for each of the custom pojo types, and passing them to `#call(...)` methods . + diff --git a/documentation/doc-src/pages/client/examples/call/call.md b/documentation/doc-src/pages/client/examples/call/call.md new file mode 100644 index 0000000..62fad98 --- /dev/null +++ b/documentation/doc-src/pages/client/examples/call/call.md @@ -0,0 +1,41 @@ +--- +title: Работа с хранимыми процедурами +--- + +Следующие пример демонстрируют работу с хранимыми процедурами из java: + +=== "tarantool-java-sdk" + + ```title="Работа с хранимыми процедурами из java" + --8<-- "client/TarantoolCallTJSDKExample.java:all" + ``` + + ```title="Абстрактный класс для создания контейнера Tarantool" + --8<-- "client/TarantoolCallEvalAbstractExample.java:all" + ``` + + ```title="Абстрактный класс для создания контейнера Tarantool" + --8<-- "client/TarantoolSingleInstanceConnectionAbstractExample.java:all" + ``` + +=== "cartridge-driver" + + ```title="Работа с хранимыми процедурами из java" + --8<-- "client/TarantoolCallCartridgeDriverExample.java:all" + ``` + + ```title="Абстрактный класс для создания контейнера Tarantool" + --8<-- "client/TarantoolCallEvalAbstractExample.java:all" + ``` + + ```title="Абстрактный класс для создания контейнера Tarantool" + --8<-- "client/TarantoolSingleInstanceConnectionAbstractExample.java:all" + ``` + +???+ note "Заметка" + + `tarantool-java-sdk` позволяет преобразовывать возвращаемые значения хранимых процедур в pojo, + которые имеют поля с типами по умолчанию, автоматически. В `cartridge-driver` для этого + требуется реализация конвертеров для каждого из пользовательских типов pojo, и передача их в + методы `#call(...)`. + diff --git a/documentation/doc-src/pages/client/examples/call/index.en.md b/documentation/doc-src/pages/client/examples/call/index.en.md new file mode 100644 index 0000000..ff2123d --- /dev/null +++ b/documentation/doc-src/pages/client/examples/call/index.en.md @@ -0,0 +1,8 @@ +--- +title: Interact with stored procedures +hide: + - toc +--- + +This section provides examples of interacting with stored procedures from java using +`tarantool-java-sdk`. diff --git a/documentation/doc-src/pages/client/examples/call/index.md b/documentation/doc-src/pages/client/examples/call/index.md new file mode 100644 index 0000000..856795d --- /dev/null +++ b/documentation/doc-src/pages/client/examples/call/index.md @@ -0,0 +1,8 @@ +--- +title: Работа с хранимыми процедурами +hide: + - toc +--- + +В данном разделе приводятся примеры работы с хранимыми процедурами из java при помощи +`tarantool-java-sdk`. diff --git a/documentation/doc-src/pages/client/examples/connection/single-node.en.md b/documentation/doc-src/pages/client/examples/connection/single-node.en.md index f483abf..bb28cba 100644 --- a/documentation/doc-src/pages/client/examples/connection/single-node.en.md +++ b/documentation/doc-src/pages/client/examples/connection/single-node.en.md @@ -11,7 +11,7 @@ To connect to a single instance, run the following code: ``` ```java title="Parent abstract class to create docker container" - --8<-- "client/TarantoolSingleInstanceConnectionAbstractExample.java:tarantool-single-instance-abstract" + --8<-- "client/TarantoolSingleInstanceConnectionAbstractExample.java:all" ``` ```java title="Class to create container" @@ -25,7 +25,7 @@ To connect to a single instance, run the following code: ``` ```java title="Parent abstract class to create docker container" - --8<-- "client/TarantoolSingleInstanceConnectionAbstractExample.java:tarantool-single-instance-abstract" + --8<-- "client/TarantoolSingleInstanceConnectionAbstractExample.java:all" ``` ```java title="Class to create container" diff --git a/documentation/doc-src/pages/client/examples/connection/single-node.md b/documentation/doc-src/pages/client/examples/connection/single-node.md index e2bf395..a5d0f85 100644 --- a/documentation/doc-src/pages/client/examples/connection/single-node.md +++ b/documentation/doc-src/pages/client/examples/connection/single-node.md @@ -11,7 +11,7 @@ title: Подключение к одиночному узлу ``` ```java title="Родительский класс с созданием контейнера" - --8<-- "client/TarantoolSingleInstanceConnectionAbstractExample.java:tarantool-single-instance-abstract" + --8<-- "client/TarantoolSingleInstanceConnectionAbstractExample.java:all" ``` ```java title="Класс, который создает контейнер" @@ -25,7 +25,7 @@ title: Подключение к одиночному узлу ``` ```java title="Родительский класс с созданием контейнера" - --8<-- "client/TarantoolSingleInstanceConnectionAbstractExample.java:tarantool-single-instance-abstract" + --8<-- "client/TarantoolSingleInstanceConnectionAbstractExample.java:all" ``` ```java title="Класс, который создает контейнер" diff --git a/documentation/mkdocs.yml b/documentation/mkdocs.yml index 7516750..57eb781 100644 --- a/documentation/mkdocs.yml +++ b/documentation/mkdocs.yml @@ -44,6 +44,7 @@ plugins: Кластер TQE: TQE Cluster Примеры использования: Usage examples Подключение к узлам: Connecting to nodes + Хранимые процедуры: Stored procedures - drawio: darkmode: true - plantuml: @@ -129,6 +130,9 @@ nav: - pages/client/examples/connection/index.md - pages/client/examples/connection/single-node.md - pages/client/examples/connection/crud-cluster.md + - Хранимые процедуры: + - pages/client/examples/call/index.md + - pages/client/examples/call/call.md - Tarantool Testcontainers: - pages/testcontainers/index.md - Одиночный узел: From d64652f42f5322d5adee28d18490d4b76a7021b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B9=20=D0=91=D0=B5?= =?UTF-8?q?=D0=BB=D0=BE=D0=BD=D0=BE=D0=B3=D0=BE=D0=B2?= Date: Wed, 21 Jan 2026 14:04:04 +0300 Subject: [PATCH 2/3] refactor(snippets-anchors): refactor name of anchors --- ...rantoolSingleInstanceConnectionCartridgeDriverExample.java | 4 ++-- .../client/TarantoolSingleInstanceConnectionTJSDKExample.java | 4 ++-- .../pages/client/examples/connection/single-node.en.md | 4 ++-- .../doc-src/pages/client/examples/connection/single-node.md | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionCartridgeDriverExample.java b/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionCartridgeDriverExample.java index fc69990..4db1ada 100644 --- a/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionCartridgeDriverExample.java +++ b/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionCartridgeDriverExample.java @@ -5,7 +5,7 @@ package client; -// --8<-- [start:tarantool-single-instance-cartridge-driver] +// --8<-- [start:all] import java.net.InetSocketAddress; import java.util.List; @@ -50,4 +50,4 @@ private static TarantoolClient> .build(); } } -// --8<-- [end:tarantool-single-instance-cartridge-driver] +// --8<-- [end:all] diff --git a/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionTJSDKExample.java b/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionTJSDKExample.java index 50828c0..20ef4cd 100644 --- a/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionTJSDKExample.java +++ b/documentation/doc-src/java/src/client/TarantoolSingleInstanceConnectionTJSDKExample.java @@ -5,7 +5,7 @@ package client; -// --8<-- [start:tarantool-single-instance-tjsdk] +// --8<-- [start:all] import java.net.InetSocketAddress; import java.util.Collections; @@ -56,4 +56,4 @@ protected void simpleConnection() { } } } -// --8<-- [end:tarantool-single-instance-tjsdk] +// --8<-- [end:all] diff --git a/documentation/doc-src/pages/client/examples/connection/single-node.en.md b/documentation/doc-src/pages/client/examples/connection/single-node.en.md index bb28cba..e6a8fd7 100644 --- a/documentation/doc-src/pages/client/examples/connection/single-node.en.md +++ b/documentation/doc-src/pages/client/examples/connection/single-node.en.md @@ -7,7 +7,7 @@ To connect to a single instance, run the following code: === "tarantool-java-sdk" ```java title="Connection to single instance Tarantool" - --8<-- "client/TarantoolSingleInstanceConnectionTJSDKExample.java:tarantool-single-instance-tjsdk" + --8<-- "client/TarantoolSingleInstanceConnectionTJSDKExample.java:all" ``` ```java title="Parent abstract class to create docker container" @@ -21,7 +21,7 @@ To connect to a single instance, run the following code: === "cartridge-driver" ```java title="Connection to single instance Tarantool" - --8<-- "client/TarantoolSingleInstanceConnectionCartridgeDriverExample.java:tarantool-single-instance-cartridge-driver" + --8<-- "client/TarantoolSingleInstanceConnectionCartridgeDriverExample.java:all" ``` ```java title="Parent abstract class to create docker container" diff --git a/documentation/doc-src/pages/client/examples/connection/single-node.md b/documentation/doc-src/pages/client/examples/connection/single-node.md index a5d0f85..8b65bf0 100644 --- a/documentation/doc-src/pages/client/examples/connection/single-node.md +++ b/documentation/doc-src/pages/client/examples/connection/single-node.md @@ -7,7 +7,7 @@ title: Подключение к одиночному узлу === "tarantool-java-sdk" ```java title="Подключение к одному узлу Tarantool" - --8<-- "client/TarantoolSingleInstanceConnectionTJSDKExample.java:tarantool-single-instance-tjsdk" + --8<-- "client/TarantoolSingleInstanceConnectionTJSDKExample.java:all" ``` ```java title="Родительский класс с созданием контейнера" @@ -21,7 +21,7 @@ title: Подключение к одиночному узлу === "cartridge-driver" ```java title="Подключение к одному узлу Tarantool" - --8<-- "client/TarantoolSingleInstanceConnectionCartridgeDriverExample.java:tarantool-single-instance-cartridge-driver" + --8<-- "client/TarantoolSingleInstanceConnectionCartridgeDriverExample.java:all" ``` ```java title="Родительский класс с созданием контейнера" From e532287bdef4aa35b6b082386c57ab54fcc702be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B9=20=D0=91=D0=B5?= =?UTF-8?q?=D0=BB=D0=BE=D0=BD=D0=BE=D0=B3=D0=BE=D0=B2?= Date: Wed, 21 Jan 2026 14:06:12 +0300 Subject: [PATCH 3/3] fix(translating-typo): typo --- .../pages/client/examples/connection/crud-cluster.en.md | 8 ++++---- .../pages/client/examples/connection/crud-cluster.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/documentation/doc-src/pages/client/examples/connection/crud-cluster.en.md b/documentation/doc-src/pages/client/examples/connection/crud-cluster.en.md index 52a32a8..5b4a5bb 100644 --- a/documentation/doc-src/pages/client/examples/connection/crud-cluster.en.md +++ b/documentation/doc-src/pages/client/examples/connection/crud-cluster.en.md @@ -7,20 +7,20 @@ using the `crud` module: === "tarantool-java-sdk" - ```title="Подключенние к кластеру при помощи TJSDK" + ```title="Connect to cluster using TJSDK" --8<-- "client/TarantoolDBClusterConnectionTJSDKExample.java:all" ``` - ```title="Абстрактный класс для создания кластера в docker" + ```title="Abstract class to create cluster in docker" --8<-- "client/TarantoolDBClusterConnectionAbstractExample.java:all" ``` === "cartridge-driver" - ```title="Подключенние к кластеру при помощи Cartridge java" + ```title="Connect to cluster using cartridge-driver" --8<-- "client/TarantoolDBClusterConnectionCartridgeDriverExample.java:all" ``` - ```title="Абстрактный класс для создания кластера в docker" + ```title="Abstract class to create cluster in docker" --8<-- "client/TarantoolDBClusterConnectionAbstractExample.java:all" ``` diff --git a/documentation/doc-src/pages/client/examples/connection/crud-cluster.md b/documentation/doc-src/pages/client/examples/connection/crud-cluster.md index c098691..df72616 100644 --- a/documentation/doc-src/pages/client/examples/connection/crud-cluster.md +++ b/documentation/doc-src/pages/client/examples/connection/crud-cluster.md @@ -17,7 +17,7 @@ title: Подключение к класетру Tarantool через crud === "cartridge-driver" - ```title="Подключенние к кластеру при помощи Cartridge java" + ```title="Подключенние к кластеру при помощи cartridge-driver" --8<-- "client/TarantoolDBClusterConnectionCartridgeDriverExample.java:all" ```