You've already forked OpenIntegrations
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:
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user