1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-21 21:27:27 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot) 2025-02-15 19:36:59 +03:00
parent 4834acac61
commit c5fbe66460
22 changed files with 6673 additions and 6577 deletions

View File

@ -1,5 +1,6 @@
{
"Image": "https://api.athenaeum.digital/test_data/picture.jpg",
"Address": "93.125.42.204",
"Password": "12we..."
"Password": "12we...",
"SQLFile": "https://api.athenaeum.digital/test_data/TEST_DATA.sql"
}

View File

@ -59,3 +59,14 @@
| INSERT INTO users (name, age) VALUES ('Bob', 25);
| INSERT INTO users (name, age) VALUES ('Charlie', 35);
| COMMIT;
|END $$ LANGUAGE plpgsql;";
Result = OPI_PostgreSQL.ExecuteSQLQuery(QueryText, , , Connection);
// SQL query from file
SQLFile = "https://api.athenaeum.digital/test_data/TEST_DATA.sql"; // Binary Data, URL or path to file
Result = OPI_PostgreSQL.ExecuteSQLQuery(SQLFile, , , Connection);
Closing = OPI_PostgreSQL.CloseConnection(Connection);

View File

@ -25,7 +25,7 @@ import TabItem from '@theme/TabItem';
<br/>
:::tip
Available parameter types: String, Number, Date, Boolean, BinaryData. Binary data can also be passed as a `{'blob':File path}` structure. Binary data (BLOB) values are returned as `{'blob':Base64 string}`
Query parameters are specified as an array of structures of the following type: `{'Type': 'Value'}`. The list of available types is described on the initial page of the PostgreSQL library documentation
Without specifying the `ForcifyResult` flag, result data is returned only for queries beginning with `SELECT` keyword For other queries, `result:true` or `false` with error text is returned
:::
@ -95,6 +95,17 @@ Without specifying the `ForcifyResult` flag, result data is returned only for qu
| INSERT INTO users (name, age) VALUES ('Bob', 25);
| INSERT INTO users (name, age) VALUES ('Charlie', 35);
| COMMIT;
|END $$ LANGUAGE plpgsql;";
Result = OPI_PostgreSQL.ExecuteSQLQuery(QueryText, , , Connection);
// SQL query from file
SQLFile = "https://api.athenaeum.digital/test_data/TEST_DATA.sql"; // Binary Data, URL or path to file
Result = OPI_PostgreSQL.ExecuteSQLQuery(SQLFile, , , Connection);
Closing = OPI_PostgreSQL.CloseConnection(Connection);
```

View File

@ -25,7 +25,9 @@ import TabItem from '@theme/TabItem';
<br/>
:::tip
Binary data can also be transferred as a structure `{'blob':File path}`
Record data is specified as an array of structures of the following type:<br/>```json<br/>{<br/>'Field name 1': {'Type': 'Value'},<br/>'Field name 2': {'Type': 'Value'},<br/>...<br/>}`<br/>```
The list of available types is described on the initial page of the PostgreSQL library documentation
:::
<br/>

View File

@ -23,6 +23,10 @@ import TabItem from '@theme/TabItem';
<br/>
:::tip
The list of available types is described on the initial page of the PostgreSQL library documentation
:::
<br/>

View File

@ -26,10 +26,6 @@ import TabItem from '@theme/TabItem';
<br/>
:::tip
Values of the Binary data type (BLOB) are returned as `{'blob':Base64 string}`
:::
<br/>

View File

@ -24,6 +24,12 @@ import TabItem from '@theme/TabItem';
<br/>
:::tip
Record data is specified as an array of structures of the following type:<br/>```json<br/>{<br/>'Field name 1': {'Type': 'Value'},<br/>'Field name 2': {'Type': 'Value'},<br/>...<br/>}`<br/>```
The list of available types is described on the initial page of the PostgreSQL library documentation
:::
<br/>

View File

@ -1,5 +1,6 @@
{
"Картинка": "https://api.athenaeum.digital/test_data/picture.jpg",
"Адрес": "93.125.42.204",
"Пароль": "12we..."
"Пароль": "12we...",
"ФайлSQL": "https://api.athenaeum.digital/test_data/TEST_DATA.sql"
}

View File

@ -59,3 +59,14 @@
| INSERT INTO users (name, age) VALUES ('Bob', 25);
| INSERT INTO users (name, age) VALUES ('Charlie', 35);
| COMMIT;
|END $$ LANGUAGE plpgsql;";
Результат = OPI_PostgreSQL.ВыполнитьЗапросSQL(ТекстЗапроса, , , Соединение);
// SQL запрос из файла
ФайлSQL = "https://api.athenaeum.digital/test_data/TEST_DATA.sql"; // Двоичные данные, URL или путь к файлу
Результат = OPI_PostgreSQL.ВыполнитьЗапросSQL(ФайлSQL, , , Соединение);
Закрытие = OPI_PostgreSQL.ЗакрытьСоединение(Соединение);

View File

@ -25,7 +25,7 @@ import TabItem from '@theme/TabItem';
<br/>
:::tip
Доступные типы параметров: Cтрока, Число, Дата, Булево, ДвоичныеДанные. Двоичные данные могут также быть переданы как структура `{'blob':Путь к файлу}`. Возвращаются значения двоичных данных (BLOB) в виде `{'blob':Base64 строка}`
Параметры запроса указываются как массив структур вида `{'Тип данных': 'Значение'}`. Список доступных типов описан на начальной странице документации библиотеки PostgreSQL
Без указания флага `ФорсироватьРезультат`, чтение результата осуществляется только для запросов, начинающихся с `SELECT` Для остальных запросов возвращается `result:true` или `false` с текстом ошибки
:::
@ -95,6 +95,17 @@ import TabItem from '@theme/TabItem';
| INSERT INTO users (name, age) VALUES ('Bob', 25);
| INSERT INTO users (name, age) VALUES ('Charlie', 35);
| COMMIT;
|END $$ LANGUAGE plpgsql;";
Результат = OPI_PostgreSQL.ВыполнитьЗапросSQL(ТекстЗапроса, , , Соединение);
// SQL запрос из файла
ФайлSQL = "https://api.athenaeum.digital/test_data/TEST_DATA.sql"; // Двоичные данные, URL или путь к файлу
Результат = OPI_PostgreSQL.ВыполнитьЗапросSQL(ФайлSQL, , , Соединение);
Закрытие = OPI_PostgreSQL.ЗакрытьСоединение(Соединение);
```

View File

@ -25,7 +25,9 @@ import TabItem from '@theme/TabItem';
<br/>
:::tip
Двоичные данные могут также быть переданы как структура `{'blob':Путь к файлу}`
Данные записей указываются как массив структур вида:<br/>```json<br/>{<br/>'Имя поля 1': {'Тип данных': 'Значение'},<br/>'Имя поля 2': {'Тип данных': 'Значение'},<br/>...<br/>}`<br/>```
Список доступных типов описан на начальной странице документации библиотеки PostgreSQL
:::
<br/>

View File

@ -47,7 +47,6 @@ import TabItem from '@theme/TabItem';
```json title="Результат"
{
"error": "db error: FATAL: no pg_hba.conf entry for host \"fdfd::1a4b:e3\", user \"bayselonarrend\", database \"postgres\", no encryption",
"result": false
"result": true
}
```

View File

@ -23,6 +23,10 @@ import TabItem from '@theme/TabItem';
<br/>
:::tip
Список доступных типов описан на начальной странице документации библиотеки PostgreSQL
:::
<br/>

View File

@ -47,7 +47,6 @@ import TabItem from '@theme/TabItem';
```json title="Результат"
{
"error": "db error: ERROR: database \"testbase1\" is being accessed by other users\nDETAIL: There are 8 other sessions using the database.",
"result": false
"result": true
}
```

View File

@ -26,10 +26,6 @@ import TabItem from '@theme/TabItem';
<br/>
:::tip
Значения типа Двоичные данные (BLOB) возвращаются в виде `{'blob':Base64 строка}`
:::
<br/>

View File

@ -24,6 +24,12 @@ import TabItem from '@theme/TabItem';
<br/>
:::tip
Данные записей указываются как массив структур вида:<br/>```json<br/>{<br/>'Имя поля 1': {'Тип данных': 'Значение'},<br/>'Имя поля 2': {'Тип данных': 'Значение'},<br/>...<br/>}`<br/>```
Список доступных типов описан на начальной странице документации библиотеки PostgreSQL
:::
<br/>

File diff suppressed because it is too large Load Diff

View File

@ -118,9 +118,8 @@ EndFunction
// Executes an arbitrary SQL query
//
// Note
// Available parameter types: String, Number, Date, Boolean, BinaryData.^^
// Binary data can also be passed as a `{'blob':File path}` structure. Binary data (BLOB) values are returned^^
// as `{'blob':Base64 string}`
// Query parameters are specified as an array of structures of the following type: `{'Type': 'Value'}`.^^
// The list of available types is described on the initial page of the PostgreSQL library documentation
// Without specifying the `ForcifyResult` flag, result data is returned only for queries beginning with `SELECT` keyword^^
// For other queries, `result:true` or `false` with error text is returned
//
@ -285,6 +284,9 @@ EndFunction
// Create table
// Creates an empty table in the database
//
// Note
// The list of available types is described on the initial page of the PostgreSQL library documentation
//
// Parameters:
// Table - String - Table name - table
// ColoumnsStruct - Structure Of KeyAndValue - Column structure: Key > Name, Value > Data type - cols
@ -335,7 +337,15 @@ EndFunction
// Adds new rows to the table
//
// Note
// Binary data can also be transferred as a structure `{'blob':File path}`
// Record data is specified as an array of structures of the following type:^
// ```json^
// {^
// 'Field name 1': {'Type': 'Value'},^
// 'Field name 2': {'Type': 'Value'},^
// ...^
// }`^
// ```
// The list of available types is described on the initial page of the PostgreSQL library documentation
//
// Parameters:
// Table - String - Table name - table
@ -355,9 +365,6 @@ EndFunction
// Get records
// Gets records from the selected table
//
// Note
// Values of the Binary data type (BLOB) are returned as `{'blob':Base64 string}`
//
// Parameters:
// Table - String - Table name - table
// Fields - Array Of String - Fields for selection - fields
@ -383,6 +390,17 @@ EndFunction
// Update records
// Updates the value of records by selected criteria
//
// Note
// Record data is specified as an array of structures of the following type:^
// ```json^
// {^
// 'Field name 1': {'Type': 'Value'},^
// 'Field name 2': {'Type': 'Value'},^
// ...^
// }`^
// ```
// The list of available types is described on the initial page of the PostgreSQL library documentation
//
// Parameters:
// Table - String - Table name - table
// ValueStructure - Structure Of KeyAndValue - Values structure: Key > field, Value > field value - values

View File

@ -118,9 +118,8 @@ EndFunction
// Executes an arbitrary SQL query
//
// Note
// Available parameter types: String, Number, Date, Boolean, BinaryData.^^
// Binary data can also be passed as a `{'blob':File path}` structure. Binary data (BLOB) values are returned^^
// as `{'blob':Base64 string}`
// Query parameters are specified as an array of structures of the following type: `{'Type': 'Value'}`.^^
// The list of available types is described on the initial page of the PostgreSQL library documentation
// Without specifying the `ForcifyResult` flag, result data is returned only for queries beginning with `SELECT` keyword^^
// For other queries, `result:true` or `false` with error text is returned
//
@ -285,6 +284,9 @@ EndFunction
// Create table
// Creates an empty table in the database
//
// Note
// The list of available types is described on the initial page of the PostgreSQL library documentation
//
// Parameters:
// Table - String - Table name - table
// ColoumnsStruct - Structure Of KeyAndValue - Column structure: Key > Name, Value > Data type - cols
@ -335,7 +337,15 @@ EndFunction
// Adds new rows to the table
//
// Note
// Binary data can also be transferred as a structure `{'blob':File path}`
// Record data is specified as an array of structures of the following type:^
// ```json^
// {^
// 'Field name 1': {'Type': 'Value'},^
// 'Field name 2': {'Type': 'Value'},^
// ...^
// }`^
// ```
// The list of available types is described on the initial page of the PostgreSQL library documentation
//
// Parameters:
// Table - String - Table name - table
@ -355,9 +365,6 @@ EndFunction
// Get records
// Gets records from the selected table
//
// Note
// Values of the Binary data type (BLOB) are returned as `{'blob':Base64 string}`
//
// Parameters:
// Table - String - Table name - table
// Fields - Array Of String - Fields for selection - fields
@ -383,6 +390,17 @@ EndFunction
// Update records
// Updates the value of records by selected criteria
//
// Note
// Record data is specified as an array of structures of the following type:^
// ```json^
// {^
// 'Field name 1': {'Type': 'Value'},^
// 'Field name 2': {'Type': 'Value'},^
// ...^
// }`^
// ```
// The list of available types is described on the initial page of the PostgreSQL library documentation
//
// Parameters:
// Table - String - Table name - table
// ValueStructure - Structure Of KeyAndValue - Values structure: Key > field, Value > field value - values

View File

@ -285,8 +285,8 @@
// Создает пустую таблицу в базе
//
// Примечание:
// Список доступных типов описан на начальной странице документации библиотеки PostgreSQL
//
// Список доступных типов описан на начальной странице документации библиотеки PostgreSQL
//
// Параметры:
// Таблица - Строка - Имя таблицы - table
// СтруктураКолонок - Структура Из КлючИЗначение - Структура колонок: Ключ > имя, Значение > Тип данных - cols
@ -340,9 +340,9 @@
// Данные записей указываются как массив структур вида:^
// ```json^
// {^
// 'Имя поля 1': {'Тип данных': 'Значение'},^
// 'Имя поля 2': {'Тип данных': 'Значение'},^
// ...^
// 'Имя поля 1': {'Тип данных': 'Значение'},^
// 'Имя поля 2': {'Тип данных': 'Значение'},^
// ...^
// }`^
// ```
// Список доступных типов описан на начальной странице документации библиотеки PostgreSQL
@ -389,18 +389,18 @@
// Обновить записи
// Обновляет значение записей по выбранным критериям
//
//
// Примечание:
// Данные записей указываются как массив структур вида:^
// ```json^
// {^
// 'Имя поля 1': {'Тип данных': 'Значение'},^
// 'Имя поля 2': {'Тип данных': 'Значение'},^
// ...^
// 'Имя поля 1': {'Тип данных': 'Значение'},^
// 'Имя поля 2': {'Тип данных': 'Значение'},^
// ...^
// }`^
// ```
// Список доступных типов описан на начальной странице документации библиотеки PostgreSQL
//
//
// Параметры:
// Таблица - Строка - Имя таблицы - table
// СтруктураЗначений - Структура Из КлючИЗначение - Структура значений: Ключ > поле, Значение > значение поля - values

View File

@ -2155,9 +2155,9 @@
КонецФункции
Функция ПолучитьОбщийМодуль(Знач Имя)
Модуль = Вычислить(Имя);
Возврат Модуль;
КонецФункции

View File

@ -285,8 +285,8 @@
// Создает пустую таблицу в базе
//
// Примечание:
// Список доступных типов описан на начальной странице документации библиотеки PostgreSQL
//
// Список доступных типов описан на начальной странице документации библиотеки PostgreSQL
//
// Параметры:
// Таблица - Строка - Имя таблицы - table
// СтруктураКолонок - Структура Из КлючИЗначение - Структура колонок: Ключ > имя, Значение > Тип данных - cols
@ -340,9 +340,9 @@
// Данные записей указываются как массив структур вида:^
// ```json^
// {^
// 'Имя поля 1': {'Тип данных': 'Значение'},^
// 'Имя поля 2': {'Тип данных': 'Значение'},^
// ...^
// 'Имя поля 1': {'Тип данных': 'Значение'},^
// 'Имя поля 2': {'Тип данных': 'Значение'},^
// ...^
// }`^
// ```
// Список доступных типов описан на начальной странице документации библиотеки PostgreSQL
@ -389,18 +389,18 @@
// Обновить записи
// Обновляет значение записей по выбранным критериям
//
//
// Примечание:
// Данные записей указываются как массив структур вида:^
// ```json^
// {^
// 'Имя поля 1': {'Тип данных': 'Значение'},^
// 'Имя поля 2': {'Тип данных': 'Значение'},^
// ...^
// 'Имя поля 1': {'Тип данных': 'Значение'},^
// 'Имя поля 2': {'Тип данных': 'Значение'},^
// ...^
// }`^
// ```
// Список доступных типов описан на начальной странице документации библиотеки PostgreSQL
//
//
// Параметры:
// Таблица - Строка - Имя таблицы - table
// СтруктураЗначений - Структура Из КлючИЗначение - Структура значений: Ключ > поле, Значение > значение поля - values