You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-25 22:12:29 +02:00
62 lines
1.5 KiB
Plaintext
Vendored
62 lines
1.5 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 10
|
|
description: Delete table 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
|
|
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, SQLite]
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Delete table
|
|
Deletes a table from the database
|
|
|
|
|
|
|
|
`Function DeleteTable(Val Table, Val Connection = "") Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Table | --table | String | ✔ | Table name |
|
|
| Connection | --db | String, Arbitrary | ✖ | Existing connection or database path |
|
|
|
|
|
|
Returns: Map Of KeyAndValue - Result of query execution
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Base = "C:\Users\bayse\AppData\Local\Temp\v8_FF37_66.sqlite";
|
|
Table = "test";
|
|
|
|
Result = OPI_SQLite.DeleteTable(Table, Base);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint sqlite DeleteTable \
|
|
--table "test" \
|
|
--db "/tmp/1q3umrdj.x1r.sqlite"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint sqlite DeleteTable ^
|
|
--table "test" ^
|
|
--db "/tmp/1q3umrdj.x1r.sqlite"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"result": true
|
|
}
|
|
```
|