1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-23 12:18:48 +02:00
OpenIntegrations/docs/en/md/SQLite/Orm/Delete-table.mdx

39 lines
739 B
Plaintext
Raw Normal View History

2025-01-08 21:46:13 +03:00
---
sidebar_position: 7
---
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: Structure Of KeyAndValue, String - Result of query execution
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_52E1_34.sqlite";
Table = "test";
Result = OPI_SQLite.DeleteTable(Table, Base);
```