1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-12-05 22:53:35 +02:00
Files
OpenIntegrations/docs/en/md/SQLite/Common-methods/Close-connection.mdx

50 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-12-29 22:28:49 +03:00
---
sidebar_position: 2
2025-05-05 11:15:20 +03:00
description: Close connection and other functions to work with SQLite in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
2025-05-05 09:49:19 +03:00
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, SQLite]
2024-12-29 22:28:49 +03:00
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Close connection
Explicitly closes the passed connection
`Function CloseConnection(Val Connection) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Connection | - | Arbitrary | ✔ | AddIn object with open connection |
Returns: Structure Of KeyAndValue - Result of connection termination
<br/>
:::caution
**NOCLI:** this method is not available in CLI version
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
2024-12-30 17:08:45 +03:00
TFN = GetTempFileName("sqlite");
2024-12-29 22:28:49 +03:00
2024-12-30 17:08:45 +03:00
Connection = OPI_SQLite.CreateConnection(TFN);
Closing = OPI_SQLite.CloseConnection(Connection);
2024-12-29 22:28:49 +03:00
```
2024-12-31 21:45:39 +03:00
```json title="Result"
{
"result": true
}
```