You've already forked OpenIntegrations
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:
@@ -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";
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
42
docs/en/md/MongoDB/Common-methods/Generate-connection-string.mdx
vendored
Normal file
42
docs/en/md/MongoDB/Common-methods/Generate-connection-string.mdx
vendored
Normal 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 | ✔ | Host IP address with port or URL |
|
||||
| Base | --db | String | ✖ | Database, if necessary |
|
||||
| Login | --usr | String | ✖ | Username for authorization |
|
||||
| Password | --pwd | String | ✖ | Password for authorization |
|
||||
| Parameters | --params | Structure Of KeyAndValue, Undefined | ✖ | 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";
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user