2026-01-23 09:09:53 +03:00
---
2025-09-22 23:01:00 +03:00
sidebar_position: 2
2026-04-07 19:14:21 +03:00
sidebar_class_name: doc-no-cli
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';
2026-04-08 10:53:37 +03:00
import Admonition from '@theme/Admonition';
2024-12-29 22:28:49 +03:00
# Close connection
Explicitly closes the passed connection
2026-04-05 00:44:55 +03:00
<Tabs>
<TabItem value="params" label="Parameters" default>
2026-04-05 09:31:34 +03:00
`Function CloseConnection(Val Connection) Export`
2024-12-29 22:28:49 +03:00
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Connection | - | Arbitrary | ✔ | AddIn object with open connection |
2026-04-08 10:53:37 +03:00
<div className="return-value-note">
<div className="return-value-note__title">Returns</div>
<div className="return-value-note__value">
Structure Of KeyAndValue - Result of connection termination
</div>
</div>
2024-12-29 22:28:49 +03:00
2026-04-05 00:44:55 +03:00
</TabItem>
2026-04-05 09:31:34 +03:00
<TabItem value="extended" label={<span>Advanced call{' '}<a href="/docs/Start/Advanced-call" target="_blank" rel="noreferrer" title="About advanced call" onClick={(e) => e.stopPropagation()}>?</a></span>}>
2026-04-05 00:44:55 +03:00
*This method has no additional advanced call parameters.*
</TabItem>
</Tabs>
2024-12-29 22:28:49 +03:00
2026-04-08 10:53:37 +03:00
<Admonition type="caution" title="Caution" className="nocli-admonition">
<div className="addin">
<strong>NOCLI:</strong> this method is not available in CLI version
</div>
</Admonition>
2024-12-29 22:28:49 +03:00
```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
}
```