Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Connect standard Db Version 11 (Java)

Группа действий: Базы данных

Описание

Создает контекст подключения к стандартной базе данных.

Иконка действия

Image Removed

Параметры

Входные параметры

  1. Тип СУБД – СУБД, к которой будет выполнено подключение.

  2. Логин Логин для подключения БД.

  3. Пароль – Пароль для подключения БД.

  4. Хост сервера – Имя сервера, на котором развёрнута СУБД.

  5. Порт сервера – Порт сервера, на котором развёрнута СУБД.

  6. Имя БД - Имя БД.

  7. Тайм-аут - Предельное время ожидания подключения к БД.

  8. Уровень изоляции транзакций - режим использования транзакций внутри подключения.

  9. Параметры - Дополнительные параметры подключения.

Выходные параметры

В результате получаем контекст подключения для работы с БД.

Настройки

Action group: Databases

...

Description

Creates a connection context to the standard database

More details can be found here: Instructions on how to connect to Microsoft SQL Server from Robin Studio

Action icon

Image Added

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
DATABASE TYPEDB typeRobin.String
Yes
LoginLogin to connect the databaseRobin.String
No
PasswordPassword to connect the databaseRobin.Object
No
Server hostServer hostRobin.String
No
Server portServer portRobin.Numeric
No
DB nameDB nameRobin.String
No
TimeoutTime limit for connection creation. Further it is used as the maximum waiting time for the execution of requests in the connection. The default is 60 s. May depend on driver implementation.Robin.Numeric
No
Transaction isolation levelEnable the mode of using transactions inside the connection

Свойство

Описание

Тип

Пример заполнения

Обязательность заполнения поля

Параметры

Тип СУБД

Тип СУБД

Robin.String

Да

Логин

Логин для подключения БД

Robin.String

Нет

Пароль

Пароль для подключения БД

Robin.Object

Нет

Хост сервера

Хост сервера

Robin.String

Нет

Порт сервера

Порт сервера

Robin.Numeric

Нет

Имя БД

Имя БД

Robin.String

Нет

Тайм-аут

Предельное время ожидания создания подключения. Далее используется, как предельное время ожидания выполнения запросов в подключении. По умолчанию 60 с. Может зависеть от реализации драйвера.

Robin.Numeric

Нет

Уровень изоляции транзакций

Включить режим использования транзакций внутри подключения
Robin.Booleantrue
Нет
No

Параметры

Дополнительные параметры подключения в виде словаря
ParametersAdditional connection parameters in the form of a dictionaryRobin.Dictionary
Нет

No
Результаты
Results

Контекст

Контекст подключения к выбранной базе данных
DB contextConnection context to the selected databaseRobin.DbContext

Контекст баз данных

Особые условия использования

Database context

Special conditions of use

The difference between custom connection and standard connection is that with standard connection you can connect only to 1 of 4 available databases Разница между пользовательским подключением стандартным подключением заключается в том, что с помощью стандартного подключения можно подключиться только к 1 из 4-х доступных БД (Oracle, MySql, PostgreSql, MsSqlServer) , с помощью пользовательского подключения можно подключиться к любой БД для которой установлен jdbc-драйвер. 

Пример использования 

Задача

, with custom connection you can connect to any database for which jdbc-driver is installed. 

Example of use  

Task

Connect to MsSqlServer database and execute the query Подключиться к базе данных MsSqlServer и выполнить запрос 

SELECT * FROM Table1
ORDER BY id ASC;

Решение

Solution

Use the actions "Connect Standard DbВоспользоваться действиями "Стандартное подключение", "Выполнить запросExecute Sql Statement". 

Реализация

...

Implementation

  1. Assemble a robot scheme consisting of actions:
    Image Added
  2. Configure the settings for the "Connect Standard Db" action.

    In the "DATABASE TYPE" field, select the appropriate database to which you want to connect. 
    Specify the database Login and Password. 
    The Server host can be specified either by IP of the host where the database is installed or by host name. 
    Specify the Server port, as well as the DB name. 
    In the "Timeout" field, the value is calculated in seconds. 
    In the "Parameters" field specify additional parameters for connection, usually these are parameters that relate to security. Parameters are specified in the form of a dictionary. 

    Learn more about the "Transaction isolation level" parameter. Sequential database operations can be divided into transactions. A transaction is a group of operations that represent a certain boolean unit of work with the database. For example, it is necessary to perform several operations with a table in order to update the data in it. If an error occurs, you can roll back the transaction, i.e. a group of operations made, so that you don't have to figure out at which step this error occurred. 

    If the checkbox "Transaction isolation level" is activated, part of the executed queries to the database will be in the form of transactions. 
    Image Added
  3. Set the parameters for the "Execute Sql Statement" action. Image Added
  4. Click on the "Start" button in the top panel. 

Result

The program robot completed successfully. The request has been fulfilled. 

Image Added

...

Результат

Программный робот отработал успешно. Запрос выполнен. 

Image Removed