1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-23 22:05:15 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2025-11-02 11:26:05 +03:00
parent e7e3124c61
commit 4ef614e013
479 changed files with 10622 additions and 11852 deletions

View File

@@ -12,11 +12,11 @@ import TabItem from '@theme/TabItem';
`Function CreateConnection(Val ConnectionString = "") Export`
`Function CreateConnection(Val ConnectionString) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| ConnectionString | - | String | ✖ | Connection string |
| ConnectionString | - | String | ✔ | Connection string |
Returns: Arbitrary - Connector object or structure with error information
@@ -30,7 +30,12 @@ import TabItem from '@theme/TabItem';
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Address = "127.0.0.1:1234";
Login = "bayselonarrend";
Password = "12we...";
Base = "main";
```

View File

@@ -0,0 +1,42 @@
---
sidebar_position: 4
description: Generate connection string and other functions to work with MongoDB in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, MongoDB]
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Generate connection string
Forms a MongoDB connection string
`Function GenerateConnectionString(Val Address, Val Base = "", Val Login = "", Val Password = "", Val Parameters = Undefined) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Address | --addr | String | &#x2714; | Host IP address with port or URL |
| Base | --db | String | &#x2716; | Database, if necessary |
| Login | --usr | String | &#x2716; | Username for authorization |
| Password | --pwd | String | &#x2716; | Password for authorization |
| Parameters | --params | Structure Of KeyAndValue, Undefined | &#x2716; | Additional connection parameters |
Returns: String - MongoDB connection string
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Address = "127.0.0.1:1234";
Login = "bayselonarrend";
Password = "12we...";
Base = "main";
```