mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-29 21:57:16 +02:00
50 lines
928 B
Plaintext
Vendored
50 lines
928 B
Plaintext
Vendored
---
|
|
sidebar_position: 3
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Is connector
|
|
Checks that the value is an object of a PostgreSQL AddIn
|
|
|
|
|
|
|
|
`Function IsConnector(Val Value) Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Value | - | Arbitrary | ✔ | Value to check |
|
|
|
|
|
|
Returns: Boolean - Is connector
|
|
|
|
<br/>
|
|
|
|
|
|
:::caution
|
|
**NOCLI:** this method is not available in CLI version
|
|
:::
|
|
<br/>
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Address = "93.125.42.204";
|
|
Login = "bayselonarrend";
|
|
Password = "12we...";
|
|
Base = "postgres";
|
|
|
|
ConnectionString = OPI_PostgreSQL.GenerateConnectionString(Address, Base, Login, Password);
|
|
|
|
Connection = OPI_PostgreSQL.CreateConnection(ConnectionString);
|
|
Result = OPI_PostgreSQL.IsConnector(Connection);
|
|
|
|
OPI_PostgreSQL.CloseConnection(Result);
|
|
```
|
|
|
|
|
|
|
|
|
|
|