1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2025-09-01 14:51:24 +03:00
parent 05682b1e6b
commit 3d4bbb5f8b
2114 changed files with 43824 additions and 43803 deletions

View File

@@ -37,9 +37,18 @@ import TabItem from '@theme/TabItem';
Password = "12we...";
Base = "";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
Connection = OPI_MySQL.CreateConnection(ConnectionString);
Result = OPI_MySQL.CloseConnection(Connection);
TLS = True;
Port = 3306;
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
If TLS Then
TLSSettings = OPI_MySQL.GetTLSSettings(True);
Else
TLSSettings = Undefined;
EndIf;
Connection = OPI_MySQL.CreateConnection(ConnectionString, TLSSettings);
Result = OPI_MySQL.CloseConnection(Connection);
```

View File

@@ -38,22 +38,17 @@ import TabItem from '@theme/TabItem';
Password = "12we...";
Base = "";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
Result = OPI_MySQL.CreateConnection(ConnectionString);
OPI_MySQL.CloseConnection(Result);
// With TLS
Address = "127.0.0.1";
Port = "3307";
TLS = True;
Port = 3306;
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
TLSSettings = OPI_MySQL.GetTlsSettings(True);
If TLS Then
TLSSettings = OPI_MySQL.GetTLSSettings(True);
Else
TLSSettings = Undefined;
EndIf;
Result = OPI_MySQL.CreateConnection(ConnectionString, TLSSettings);
OPI_MySQL.CloseConnection(Result);
```

View File

@@ -45,8 +45,17 @@ Without specifying the `ForcifyResult` flag, result data is returned only for qu
Password = "12we...";
Base = "test_data";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
Connection = OPI_MySQL.CreateConnection(ConnectionString);
TLS = True;
Port = 3306;
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
If TLS Then
TLSSettings = OPI_MySQL.GetTLSSettings(True);
Else
TLSSettings = Undefined;
EndIf;
Connection = OPI_MySQL.CreateConnection(ConnectionString, TLSSettings);
// CREATE

View File

@@ -34,7 +34,7 @@ Passing Tls settings together with passing an already created connection to the
```bsl title="1C:Enterprise/OneScript code example"
Result = OPI_MySQL.GetTlsSettings(True);
Result = OPI_MySQL.GetTLSSettings(True);
```

View File

@@ -37,9 +37,17 @@ import TabItem from '@theme/TabItem';
Password = "12we...";
Base = "";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
TLS = True;
Port = 3306;
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
Connection = OPI_MySQL.CreateConnection(ConnectionString);
If TLS Then
TLSSettings = OPI_MySQL.GetTLSSettings(True);
Else
TLSSettings = Undefined;
EndIf;
Connection = OPI_MySQL.CreateConnection(ConnectionString, TLSSettings);
Result = OPI_MySQL.IsConnector(Connection);
OPI_MySQL.CloseConnection(Result);

View File

@@ -42,7 +42,15 @@ The list of available types is described on the initial page of the MySQL librar
Password = "12we...";
Base = "testbase1";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
TLS = True;
Port = 3306;
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
If TLS Then
TLSSettings = OPI_MySQL.GetTLSSettings(True);
Else
TLSSettings = Undefined;
EndIf;
Table = "testtable";
RecordsArray = New Array;
@@ -80,7 +88,7 @@ The list of available types is described on the initial page of the MySQL librar
// which will be closed after the function is executed.
// If several operations are performed, it is desirable to use one connection,
// previously created by the CreateConnection function()
Result = OPI_MySQL.AddRecords(Table, RecordsArray, True, ConnectionString);
Result = OPI_MySQL.AddRecords(Table, RecordsArray, True, ConnectionString, TLSSettings);
```

View File

@@ -34,19 +34,27 @@ import TabItem from '@theme/TabItem';
Address = "127.0.0.1";
Login = "bayselonarrend";
Password = "12we...";
Base = "testbase1";
TLS = True;
Port = 3306;
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
If TLS Then
TLSSettings = OPI_MySQL.GetTLSSettings(True);
Else
TLSSettings = Undefined;
EndIf;
Table = "testtable";
Name = "new_field";
DataType = "MEDIUMTEXT";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
// When using the connection string, a new connection is initialised,
// which will be closed after the function is executed.
// If several operations are performed, it is desirable to use one connection,
// previously created by the CreateConnection function()
Result = OPI_MySQL.AddTableColumn(Table, Name, DataType, ConnectionString);
Result = OPI_MySQL.AddTableColumn(Table, Name, DataType, ConnectionString, TLSSettings);
```

View File

@@ -34,7 +34,15 @@ import TabItem from '@theme/TabItem';
Password = "12we...";
Base = "testbase1";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
TLS = True;
Port = 3306;
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
If TLS Then
TLSSettings = OPI_MySQL.GetTLSSettings(True);
Else
TLSSettings = Undefined;
EndIf;
Table = "testtable";
@@ -42,7 +50,7 @@ import TabItem from '@theme/TabItem';
// which will be closed after the function is executed.
// If several operations are performed, it is desirable to use one connection,
// previously created by the CreateConnection function()
Result = OPI_MySQL.ClearTable(Table, ConnectionString);
Result = OPI_MySQL.ClearTable(Table, ConnectionString, TLSSettings);
```

View File

@@ -34,7 +34,15 @@ import TabItem from '@theme/TabItem';
Password = "12we...";
Base = "";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
TLS = True;
Port = 3306;
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
If TLS Then
TLSSettings = OPI_MySQL.GetTLSSettings(True);
Else
TLSSettings = Undefined;
EndIf;
Base = "testbase1";
@@ -42,7 +50,7 @@ import TabItem from '@theme/TabItem';
// which will be closed after the function is executed.
// If several operations are performed, it is desirable to use one connection,
// previously created by the CreateConnection function()
Result = OPI_MySQL.CreateDatabase(Base, ConnectionString);
Result = OPI_MySQL.CreateDatabase(Base, ConnectionString, TLSSettings);
```

View File

@@ -39,7 +39,15 @@ The list of available types is described on the initial page of the MySQL librar
Password = "12we...";
Base = "testbase1";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
TLS = True;
Port = 3306;
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
If TLS Then
TLSSettings = OPI_MySQL.GetTLSSettings(True);
Else
TLSSettings = Undefined;
EndIf;
Table = "testtable";
@@ -69,7 +77,7 @@ The list of available types is described on the initial page of the MySQL librar
// which will be closed after the function is executed.
// If several operations are performed, it is desirable to use one connection,
// previously created by the CreateConnection function()
Result = OPI_MySQL.CreateTable(Table, ColoumnsStruct, ConnectionString);
Result = OPI_MySQL.CreateTable(Table, ColoumnsStruct, ConnectionString, TLSSettings);
```

View File

@@ -34,7 +34,15 @@ import TabItem from '@theme/TabItem';
Password = "12we...";
Base = "";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
TLS = True;
Port = 3306;
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
If TLS Then
TLSSettings = OPI_MySQL.GetTLSSettings(True);
Else
TLSSettings = Undefined;
EndIf;
Base = "testbase1";
@@ -42,7 +50,7 @@ import TabItem from '@theme/TabItem';
// which will be closed after the function is executed.
// If several operations are performed, it is desirable to use one connection,
// previously created by the CreateConnection function()
Result = OPI_MySQL.DeleteDatabase(Base, ConnectionString);
Result = OPI_MySQL.DeleteDatabase(Base, ConnectionString, TLSSettings);
```

View File

@@ -35,7 +35,15 @@ import TabItem from '@theme/TabItem';
Password = "12we...";
Base = "test_data";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
TLS = True;
Port = 3306;
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
If TLS Then
TLSSettings = OPI_MySQL.GetTLSSettings(True);
Else
TLSSettings = Undefined;
EndIf;
Table = "test_data";
@@ -62,7 +70,7 @@ import TabItem from '@theme/TabItem';
// which will be closed after the function is executed.
// If several operations are performed, it is desirable to use one connection,
// previously created by the CreateConnection function()
Result = OPI_MySQL.DeleteRecords(Table, Filters, ConnectionString);
Result = OPI_MySQL.DeleteRecords(Table, Filters, ConnectionString, TLSSettings);
```

View File

@@ -33,18 +33,26 @@ import TabItem from '@theme/TabItem';
Address = "127.0.0.1";
Login = "bayselonarrend";
Password = "12we...";
Base = "testbase1";
TLS = True;
Port = 3306;
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
If TLS Then
TLSSettings = OPI_MySQL.GetTLSSettings(True);
Else
TLSSettings = Undefined;
EndIf;
Base = "testbase1";
Table = "testtable";
Name = "new_field";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
// When using the connection string, a new connection is initialised,
// which will be closed after the function is executed.
// If several operations are performed, it is desirable to use one connection,
// previously created by the CreateConnection function()
Result = OPI_MySQL.DeleteTableColumn(Table, Name, ConnectionString);
Result = OPI_MySQL.DeleteTableColumn(Table, Name, ConnectionString, TLSSettings);
```

View File

@@ -34,7 +34,15 @@ import TabItem from '@theme/TabItem';
Password = "12we...";
Base = "testbase1";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
TLS = True;
Port = 3306;
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
If TLS Then
TLSSettings = OPI_MySQL.GetTLSSettings(True);
Else
TLSSettings = Undefined;
EndIf;
Table = "testtable";
@@ -42,7 +50,7 @@ import TabItem from '@theme/TabItem';
// which will be closed after the function is executed.
// If several operations are performed, it is desirable to use one connection,
// previously created by the CreateConnection function()
Result = OPI_MySQL.DeleteTable(Table, ConnectionString);
Result = OPI_MySQL.DeleteTable(Table, ConnectionString, TLSSettings);
```

View File

@@ -39,12 +39,20 @@ This function does not update the data type of existing columns
Address = "127.0.0.1";
Login = "bayselonarrend";
Password = "12we...";
Base = "testbase1";
TLS = True;
Port = 3306;
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
If TLS Then
TLSSettings = OPI_MySQL.GetTLSSettings(True);
Else
TLSSettings = Undefined;
EndIf;
Base = "testbase1";
Table = "testtable";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
ColoumnsStruct = New Structure;
ColoumnsStruct.Insert("smallint_field" , "SMALLINT");
ColoumnsStruct.Insert("double_field" , "DOUBLE");
@@ -55,7 +63,7 @@ This function does not update the data type of existing columns
// which will be closed after the function is executed.
// If several operations are performed, it is desirable to use one connection,
// previously created by the CreateConnection function()
Result = OPI_MySQL.EnsureTable(Table, ColoumnsStruct, ConnectionString);
Result = OPI_MySQL.EnsureTable(Table, ColoumnsStruct, ConnectionString, TLSSettings);
```

View File

@@ -38,7 +38,15 @@ import TabItem from '@theme/TabItem';
Password = "12we...";
Base = "testbase1";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
TLS = True;
Port = 3306;
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
If TLS Then
TLSSettings = OPI_MySQL.GetTLSSettings(True);
Else
TLSSettings = Undefined;
EndIf;
// All records without filters
@@ -48,11 +56,11 @@ import TabItem from '@theme/TabItem';
// which will be closed after the function is executed.
// If several operations are performed, it is desirable to use one connection,
// previously created by the CreateConnection function()
Result = OPI_MySQL.GetRecords(Table, , , , , ConnectionString);
Result = OPI_MySQL.GetRecords(Table, , , , , ConnectionString, TLSSettings);
// Filter, selected fields, limit and sorting
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, "test_data", Login, Password);
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, "test_data", Login, Password, Port);
Table = "test_data";
@@ -84,7 +92,7 @@ import TabItem from '@theme/TabItem';
Sort = New Structure("ip_address", "DESC");
Count = 5;
Result = OPI_MySQL.GetRecords(Table, Fields, Filters, Sort, Count, ConnectionString);
Result = OPI_MySQL.GetRecords(Table, Fields, Filters, Sort, Count, ConnectionString, TLSSettings);
```

View File

@@ -34,7 +34,15 @@ import TabItem from '@theme/TabItem';
Password = "12we...";
Base = "testbase1";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
TLS = True;
Port = 3306;
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
If TLS Then
TLSSettings = OPI_MySQL.GetTLSSettings(True);
Else
TLSSettings = Undefined;
EndIf;
Table = "testtable";
@@ -42,7 +50,7 @@ import TabItem from '@theme/TabItem';
// which will be closed after the function is executed.
// If several operations are performed, it is desirable to use one connection,
// previously created by the CreateConnection function()
Result = OPI_MySQL.GetTableInformation(Table, ConnectionString);
Result = OPI_MySQL.GetTableInformation(Table, ConnectionString, TLSSettings);
```

View File

@@ -42,7 +42,15 @@ The list of available types is described on the initial page of the MySQL librar
Password = "12we...";
Base = "test_data";
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password);
TLS = True;
Port = 3306;
ConnectionString = OPI_MySQL.GenerateConnectionString(Address, Base, Login, Password, Port);
If TLS Then
TLSSettings = OPI_MySQL.GetTLSSettings(True);
Else
TLSSettings = Undefined;
EndIf;
Table = "test_data";
@@ -64,7 +72,7 @@ The list of available types is described on the initial page of the MySQL librar
// which will be closed after the function is executed.
// If several operations are performed, it is desirable to use one connection,
// previously created by the CreateConnection function()
Result = OPI_MySQL.UpdateRecords(Table, FieldsStructure, FilterStructure, ConnectionString);
Result = OPI_MySQL.UpdateRecords(Table, FieldsStructure, FilterStructure, ConnectionString, TLSSettings);
```