You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-23 22:05:15 +02:00
@@ -1,36 +0,0 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
description: Create collection 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';
|
||||
|
||||
# Create collection
|
||||
Creates a new collection with the specified parameters
|
||||
|
||||
|
||||
|
||||
`Function CreateCollection(Val Connection, Val Name, Val Base = Undefined, Val Parameters = Undefined) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Connection | --dbc | String, Arbitrary | ✔ | Connection or connection string |
|
||||
| Name | --name | String | ✔ | Collection name |
|
||||
| Base | --db | String | ✖ | Database name. Current database if not specified |
|
||||
| Parameters | --params | Structure Of KeyAndValue | ✖ | Additional creation parameters |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Operation result
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
description: Delete collection 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';
|
||||
|
||||
# Delete collection
|
||||
Deletes the selected database collection
|
||||
|
||||
|
||||
|
||||
`Function DeleteCollection(Val Connection, Val Collection, Val Base = Undefined) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Connection | --dbc | String, Arbitrary | ✔ | Connection or connection string |
|
||||
| Collection | --coll | String | ✔ | Collection name |
|
||||
| Base | --db | String | ✖ | Database name. Current database if not specified |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Operation result
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"label": "Collection management",
|
||||
"position": "4"
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
description: Execute command 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';
|
||||
|
||||
# Execute command
|
||||
Executes the command according to its description
|
||||
|
||||
|
||||
|
||||
`Function ExecuteCommand(Val Connection, Val Command, Val Argument = 1, Val Base = Undefined, Val Data = Undefined) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Connection | --dbc | String, Arbitrary | ✔ | Connection or connection string |
|
||||
| Command | --comm | String | ✔ | Command name to execute |
|
||||
| Argument | --arg | Arbitrary | ✖ | Command argument |
|
||||
| Base | --db | String | ✖ | Database in which the operation needs to be performed |
|
||||
| Data | --data | Structure Of KeyAndValue | ✖ | Main data fields for performing the operation |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Operation result
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Address = "127.0.0.1:1234";
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
Base = "main";
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -34,9 +34,6 @@ import TabItem from '@theme/TabItem';
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
Base = "main";
|
||||
|
||||
ConnectionParams = New Structure("authSource", "admin");
|
||||
Result = OPI_MongoDB.GenerateConnectionString(Address, Base, Login, Password, ConnectionParams);
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
description: Drop database 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';
|
||||
|
||||
# Drop database
|
||||
Deletes the database
|
||||
|
||||
|
||||
|
||||
`Function DeleteDatabase(Val Connection, Val Base = Undefined) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Connection | --dbc | String, Arbitrary | ✔ | Connection or connection string |
|
||||
| Base | --db | String | ✖ | Database name. Current database if not specified |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Operation result
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
description: Get database 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';
|
||||
|
||||
# Get database
|
||||
Gets information about the database
|
||||
|
||||
|
||||
|
||||
`Function GetDatabase(Val Connection, Val Base = Undefined) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Connection | --dbc | String, Arbitrary | ✔ | Connection or connection string |
|
||||
| Base | --db | String | ✖ | Database name. Current database if not specified |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Operation result
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
Address = "127.0.0.1:1234";
|
||||
Login = "bayselonarrend";
|
||||
Password = "12we...";
|
||||
Base = "main";
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
description: Get list of bases 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';
|
||||
|
||||
# Get list of bases
|
||||
Gets the list of databases
|
||||
|
||||
|
||||
|
||||
`Function GetListOfBases(Val Connection) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Connection | --dbc | String, Arbitrary | ✔ | Connection or connection string |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Operation result
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"label": "Working with databases",
|
||||
"position": "3"
|
||||
}
|
||||
Reference in New Issue
Block a user