mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-21 21:27:27 +02:00
41 lines
796 B
Plaintext
41 lines
796 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:***@127.0.0.1:27017";
|
|
|
|
Result = OPI_MongoDB.GetListOfBases(ConnectionString);
|
|
```
|
|
|
|
|
|
|
|
|
|
|