mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-04-04 22:14:37 +02:00
40 lines
804 B
Plaintext
40 lines
804 B
Plaintext
|
---
|
||
|
sidebar_position: 1
|
||
|
---
|
||
|
|
||
|
import Tabs from '@theme/Tabs';
|
||
|
import TabItem from '@theme/TabItem';
|
||
|
|
||
|
# Get list of bases
|
||
|
Gets a list of bases
|
||
|
|
||
|
|
||
|
|
||
|
`Function GetListOfBases(Val ConnectionString) Export`
|
||
|
|
||
|
| Parameter | CLI option | Type | Required | Description |
|
||
|
|-|-|-|-|-|
|
||
|
| ConnectionString | --connect | String | ✔ | Connection string to MongoDB server |
|
||
|
|
||
|
|
||
|
Returns: Structure of KeyAndValue - serialized JSON response from MongoDB server
|
||
|
|
||
|
<br/>
|
||
|
|
||
|
:::tip
|
||
|
Method in MongoDB documentation: [listDatabases](https://mongodb.com/docs/manual/reference/command/listDatabases/)
|
||
|
:::
|
||
|
<br/>
|
||
|
|
||
|
|
||
|
```bsl title="1C:Enterprise/OneScript code example"
|
||
|
ConnectionString = "mongodb://bayselonarrend:12We3456@93.125.42.204:27017";
|
||
|
|
||
|
Result = OPI_MongoDB.GetListOfBases(ConnectionString);
|
||
|
```
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|