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

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2025-06-25 13:17:23 +03:00
parent d2dcd90d96
commit 3b29c1e324
64 changed files with 9569 additions and 8461 deletions

View File

@@ -33,7 +33,26 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
Address = "127.0.0.1";
Login = "bayselonarrend";
Password = "12we...";
ConnectionString = OPI_MSSQL.GenerateConnectionString(Address, , Login, Password);
Result = OPI_MSSQL.CreateConnection(ConnectionString);
OPI_MSSQL.CloseConnection(Result);
// With TLS
Address = "api.athenaeum.digital";
Port = "1434";
ConnectionString = OPI_MSSQL.GenerateConnectionString(Address, , Login, Password, Port);
TLSSettings = OPI_MSSQL.GetTlsSettings(False);
Result = OPI_MSSQL.CreateConnection(ConnectionString, TLSSettings);
OPI_MSSQL.CloseConnection(Result);
```

View File

@@ -12,14 +12,15 @@ import TabItem from '@theme/TabItem';
`Function GenerateConnectionString(Val Address, Val Base = "", Val Login = "", Val Password = "", Val WindowsAuth = False) Export`
`Function GenerateConnectionString(Val Address, Val Base = "", Val Login = "", Val Password = "", Val Port = "", Val WindowsAuth = False) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Address | --addr | String | ✔ | Adress, instance, and port of the DBMS server |
| Address | --addr | String | ✔ | Database server address and instance |
| Base | --db | String | ✖ | Name of the database to connect |
| Login | --login | String | ✖ | mssql user login |
| Password | --pass | String | ✖ | mssql user password |
| Port | --port | Number | ✖ | Server port |
| WindowsAuth | --trust | Boolean | ✖ | Use Windows authentication. The login and password will be ignored |
@@ -35,7 +36,12 @@ This function allows you to quickly assemble a basic connection string. In case
```bsl title="1C:Enterprise/OneScript code example"
Address = "127.0.0.1";
Login = "bayselonarrend";
Password = "12we...";
Base = "";
Result = OPI_MSSQL.GenerateConnectionString(Address, Base, Login, Password);
```