You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-12-01 22:29:52 +02:00
Main build (Jenkins)
This commit is contained in:
39
docs/en/md/MongoDB/Working-with-databases/Get-database.mdx
vendored
Normal file
39
docs/en/md/MongoDB/Working-with-databases/Get-database.mdx
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
---
|
||||
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";
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user