You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-08-10 22:41:43 +02:00
Main build (Jenkins)
This commit is contained in:
6
docs/ru/md/MSSQL/Orm/Add-table-column.mdx
vendored
6
docs/ru/md/MSSQL/Orm/Add-table-column.mdx
vendored
@@ -53,4 +53,8 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
{
|
||||
"result": true
|
||||
}
|
||||
```
|
||||
|
6
docs/ru/md/MSSQL/Orm/Clear-table.mdx
vendored
6
docs/ru/md/MSSQL/Orm/Clear-table.mdx
vendored
@@ -49,4 +49,8 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
{
|
||||
"result": true
|
||||
}
|
||||
```
|
||||
|
7
docs/ru/md/MSSQL/Orm/Delete-database.mdx
vendored
7
docs/ru/md/MSSQL/Orm/Delete-database.mdx
vendored
@@ -48,4 +48,9 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
{
|
||||
"error": "Token error: 'Cannot drop database \"testbase1\" because it is currently in use.' on server 7562d9747c2a executing on line 1 (code: 3702, state: 4, class: 16)",
|
||||
"result": false
|
||||
}
|
||||
```
|
||||
|
6
docs/ru/md/MSSQL/Orm/Delete-records.mdx
vendored
6
docs/ru/md/MSSQL/Orm/Delete-records.mdx
vendored
@@ -69,4 +69,8 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
{
|
||||
"result": true
|
||||
}
|
||||
```
|
||||
|
6
docs/ru/md/MSSQL/Orm/Delete-table-column.mdx
vendored
6
docs/ru/md/MSSQL/Orm/Delete-table-column.mdx
vendored
@@ -51,4 +51,8 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
{
|
||||
"result": true
|
||||
}
|
||||
```
|
||||
|
6
docs/ru/md/MSSQL/Orm/Delete-table.mdx
vendored
6
docs/ru/md/MSSQL/Orm/Delete-table.mdx
vendored
@@ -49,4 +49,8 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
{
|
||||
"result": true
|
||||
}
|
||||
```
|
||||
|
9
docs/ru/md/MSSQL/Orm/Ensure-table.mdx
vendored
9
docs/ru/md/MSSQL/Orm/Ensure-table.mdx
vendored
@@ -62,4 +62,11 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
{
|
||||
"result": true,
|
||||
"commit": {
|
||||
"result": true
|
||||
}
|
||||
}
|
||||
```
|
||||
|
120
docs/ru/md/MSSQL/Orm/Get-table-information.mdx
vendored
120
docs/ru/md/MSSQL/Orm/Get-table-information.mdx
vendored
@@ -49,4 +49,122 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"character_maximum_length": null,
|
||||
"column_default": null,
|
||||
"column_name": "tinyint_field",
|
||||
"data_type": "tinyint",
|
||||
"is_nullable": "YES"
|
||||
},
|
||||
{
|
||||
"character_maximum_length": null,
|
||||
"column_default": null,
|
||||
"column_name": "smallint_field",
|
||||
"data_type": "smallint",
|
||||
"is_nullable": "YES"
|
||||
},
|
||||
{
|
||||
"character_maximum_length": null,
|
||||
"column_default": null,
|
||||
"column_name": "int_field",
|
||||
"data_type": "int",
|
||||
"is_nullable": "YES"
|
||||
},
|
||||
{
|
||||
"character_maximum_length": null,
|
||||
"column_default": null,
|
||||
"column_name": "bigint_field",
|
||||
"data_type": "bigint",
|
||||
"is_nullable": "YES"
|
||||
},
|
||||
{
|
||||
"character_maximum_length": null,
|
||||
"column_default": null,
|
||||
"column_name": "float24_field",
|
||||
"data_type": "real",
|
||||
"is_nullable": "YES"
|
||||
},
|
||||
{
|
||||
"character_maximum_length": null,
|
||||
"column_default": null,
|
||||
"column_name": "float53_field",
|
||||
"data_type": "float",
|
||||
"is_nullable": "YES"
|
||||
},
|
||||
{
|
||||
"character_maximum_length": null,
|
||||
"column_default": null,
|
||||
"column_name": "bit_field",
|
||||
"data_type": "bit",
|
||||
"is_nullable": "YES"
|
||||
},
|
||||
{
|
||||
"character_maximum_length": 4000,
|
||||
"column_default": null,
|
||||
"column_name": "nvarchar_field",
|
||||
"data_type": "nvarchar",
|
||||
"is_nullable": "YES"
|
||||
},
|
||||
{
|
||||
"character_maximum_length": -1,
|
||||
"column_default": null,
|
||||
"column_name": "varbinary_field",
|
||||
"data_type": "varbinary",
|
||||
"is_nullable": "YES"
|
||||
},
|
||||
{
|
||||
"character_maximum_length": null,
|
||||
"column_default": null,
|
||||
"column_name": "uid_field",
|
||||
"data_type": "uniqueidentifier",
|
||||
"is_nullable": "YES"
|
||||
},
|
||||
{
|
||||
"character_maximum_length": null,
|
||||
"column_default": null,
|
||||
"column_name": "numeric_field",
|
||||
"data_type": "numeric",
|
||||
"is_nullable": "YES"
|
||||
},
|
||||
{
|
||||
"character_maximum_length": -1,
|
||||
"column_default": null,
|
||||
"column_name": "xml_field",
|
||||
"data_type": "xml",
|
||||
"is_nullable": "YES"
|
||||
},
|
||||
{
|
||||
"character_maximum_length": null,
|
||||
"column_default": null,
|
||||
"column_name": "date_field",
|
||||
"data_type": "date",
|
||||
"is_nullable": "YES"
|
||||
},
|
||||
{
|
||||
"character_maximum_length": null,
|
||||
"column_default": null,
|
||||
"column_name": "time_field",
|
||||
"data_type": "time",
|
||||
"is_nullable": "YES"
|
||||
},
|
||||
{
|
||||
"character_maximum_length": null,
|
||||
"column_default": null,
|
||||
"column_name": "dto_field",
|
||||
"data_type": "datetimeoffset",
|
||||
"is_nullable": "YES"
|
||||
},
|
||||
{
|
||||
"character_maximum_length": null,
|
||||
"column_default": null,
|
||||
"column_name": "datetime_field",
|
||||
"data_type": "datetime",
|
||||
"is_nullable": "YES"
|
||||
}
|
||||
],
|
||||
"result": true
|
||||
}
|
||||
```
|
||||
|
6
docs/ru/md/MSSQL/Orm/Update-records.mdx
vendored
6
docs/ru/md/MSSQL/Orm/Update-records.mdx
vendored
@@ -71,4 +71,8 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
|
||||
|
||||
```json title="Результат"
|
||||
{
|
||||
"result": true
|
||||
}
|
||||
```
|
||||
|
16710
service/dictionaries/en.json
vendored
16710
service/dictionaries/en.json
vendored
File diff suppressed because it is too large
Load Diff
12
src/en/OInt/core/Modules/OPI_MSSQL.os
vendored
12
src/en/OInt/core/Modules/OPI_MSSQL.os
vendored
@@ -282,7 +282,17 @@ EndFunction
|
||||
// Map Of KeyAndValue - Result of query execution
|
||||
Function DeleteDatabase(Val Base, Val Connection = "", Val Tls = "") Export
|
||||
|
||||
Result = OPI_SQLQueries.DeleteDatabase(OPI_MSSQL, Base, Connection, Tls);
|
||||
OPI_TypeConversion.GetLine(Base);
|
||||
|
||||
RequestTemplate = "USE master;
|
||||
|ALTER DATABASE [%1]
|
||||
|SET SINGLE_USER
|
||||
|WITH ROLLBACK IMMEDIATE;
|
||||
|DROP DATABASE [%1];";
|
||||
|
||||
QueryText = StrTemplate(RequestTemplate, Base);
|
||||
|
||||
Result = ExecuteSQLQuery(QueryText, , , Connection, Tls);
|
||||
Return Result;
|
||||
|
||||
EndFunction
|
||||
|
@@ -23844,6 +23844,7 @@ Procedure MSSQL_CreateConnection(FunctionParameters)
|
||||
OPI_TestDataRetrieval.WriteLog(Connection, "CreateConnection (before base)", "MSSQL");
|
||||
OPI_TestDataRetrieval.Check_AddIn(Connection, "AddIn.OPI_MSSQL.Main");
|
||||
|
||||
OPI_MSSQL.DeleteDatabase("test1", Connection);
|
||||
Result = OPI_MSSQL.CreateDatabase("test1", Connection);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "CreateConnection (base)", "MSSQL");
|
||||
|
@@ -282,7 +282,17 @@ EndFunction
|
||||
// Map Of KeyAndValue - Result of query execution
|
||||
Function DeleteDatabase(Val Base, Val Connection = "", Val Tls = "") Export
|
||||
|
||||
Result = OPI_SQLQueries.DeleteDatabase(OPI_MSSQL, Base, Connection, Tls);
|
||||
OPI_TypeConversion.GetLine(Base);
|
||||
|
||||
RequestTemplate = "USE master;
|
||||
|ALTER DATABASE [%1]
|
||||
|SET SINGLE_USER
|
||||
|WITH ROLLBACK IMMEDIATE;
|
||||
|DROP DATABASE [%1];";
|
||||
|
||||
QueryText = StrTemplate(RequestTemplate, Base);
|
||||
|
||||
Result = ExecuteSQLQuery(QueryText, , , Connection, Tls);
|
||||
Return Result;
|
||||
|
||||
EndFunction
|
||||
|
@@ -23844,6 +23844,7 @@ Procedure MSSQL_CreateConnection(FunctionParameters)
|
||||
OPI_TestDataRetrieval.WriteLog(Connection, "CreateConnection (before base)", "MSSQL");
|
||||
OPI_TestDataRetrieval.Check_AddIn(Connection, "AddIn.OPI_MSSQL.Main");
|
||||
|
||||
OPI_MSSQL.DeleteDatabase("test1", Connection);
|
||||
Result = OPI_MSSQL.CreateDatabase("test1", Connection);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLog(Result, "CreateConnection (base)", "MSSQL");
|
||||
|
12
src/ru/OInt/core/Modules/OPI_MSSQL.os
vendored
12
src/ru/OInt/core/Modules/OPI_MSSQL.os
vendored
@@ -282,7 +282,17 @@
|
||||
// Соответствие Из КлючИЗначение - Результат выполнения запроса
|
||||
Функция УдалитьБазуДанных(Знач База, Знач Соединение = "", Знач Tls = "") Экспорт
|
||||
|
||||
Результат = OPI_ЗапросыSQL.УдалитьБазуДанных(OPI_MSSQL, База, Соединение, Tls);
|
||||
OPI_ПреобразованиеТипов.ПолучитьСтроку(База);
|
||||
|
||||
ШаблонЗапроса = "USE master;
|
||||
|ALTER DATABASE [%1]
|
||||
|SET SINGLE_USER
|
||||
|WITH ROLLBACK IMMEDIATE;
|
||||
|DROP DATABASE [%1];";
|
||||
|
||||
ТекстЗапроса = СтрШаблон(ШаблонЗапроса, База);
|
||||
|
||||
Результат = ВыполнитьЗапросSQL(ТекстЗапроса, , , Соединение, Tls);
|
||||
Возврат Результат;
|
||||
|
||||
КонецФункции
|
||||
|
@@ -23844,6 +23844,7 @@
|
||||
OPI_ПолучениеДанныхТестов.ЗаписатьЛог(Соединение, "ОткрытьСоединение (перед базой)", "MSSQL");
|
||||
OPI_ПолучениеДанныхТестов.Проверка_Компонента(Соединение, "AddIn.OPI_MSSQL.Main");
|
||||
|
||||
OPI_MSSQL.УдалитьБазуДанных("test1", Соединение);
|
||||
Результат = OPI_MSSQL.СоздатьБазуДанных("test1", Соединение);
|
||||
|
||||
OPI_ПолучениеДанныхТестов.ЗаписатьЛог(Результат, "ОткрытьСоединение (база)", "MSSQL");
|
||||
|
Reference in New Issue
Block a user