You've already forked OpenIntegrations
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:
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
12
docs/en/md/MySQL/Common-methods/Is-connector.mdx
vendored
12
docs/en/md/MySQL/Common-methods/Is-connector.mdx
vendored
@@ -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);
|
||||
|
||||
12
docs/en/md/MySQL/Orm/Add-records.mdx
vendored
12
docs/en/md/MySQL/Orm/Add-records.mdx
vendored
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
16
docs/en/md/MySQL/Orm/Add-table-column.mdx
vendored
16
docs/en/md/MySQL/Orm/Add-table-column.mdx
vendored
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
12
docs/en/md/MySQL/Orm/Clear-table.mdx
vendored
12
docs/en/md/MySQL/Orm/Clear-table.mdx
vendored
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
12
docs/en/md/MySQL/Orm/Create-database.mdx
vendored
12
docs/en/md/MySQL/Orm/Create-database.mdx
vendored
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
12
docs/en/md/MySQL/Orm/Create-table.mdx
vendored
12
docs/en/md/MySQL/Orm/Create-table.mdx
vendored
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
12
docs/en/md/MySQL/Orm/Delete-database.mdx
vendored
12
docs/en/md/MySQL/Orm/Delete-database.mdx
vendored
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
12
docs/en/md/MySQL/Orm/Delete-records.mdx
vendored
12
docs/en/md/MySQL/Orm/Delete-records.mdx
vendored
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
16
docs/en/md/MySQL/Orm/Delete-table-column.mdx
vendored
16
docs/en/md/MySQL/Orm/Delete-table-column.mdx
vendored
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
12
docs/en/md/MySQL/Orm/Delete-table.mdx
vendored
12
docs/en/md/MySQL/Orm/Delete-table.mdx
vendored
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
16
docs/en/md/MySQL/Orm/Ensure-table.mdx
vendored
16
docs/en/md/MySQL/Orm/Ensure-table.mdx
vendored
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
16
docs/en/md/MySQL/Orm/Get-records.mdx
vendored
16
docs/en/md/MySQL/Orm/Get-records.mdx
vendored
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
12
docs/en/md/MySQL/Orm/Get-table-information.mdx
vendored
12
docs/en/md/MySQL/Orm/Get-table-information.mdx
vendored
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
12
docs/en/md/MySQL/Orm/Update-records.mdx
vendored
12
docs/en/md/MySQL/Orm/Update-records.mdx
vendored
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user