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

61 lines
1.2 KiB
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 |
2025-02-11 14:50:59 +03:00
Returns: Map Of KeyAndValue - Result of query execution
2025-01-08 21:46:13 +03:00
<br/>
```bsl title="1C:Enterprise/OneScript code example"
2025-02-13 21:31:59 +03:00
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_1A0B_60.sqlite";
2025-01-08 21:46:13 +03:00
Table = "test";
Result = OPI_SQLite.DeleteTable(Table, Base);
```
2025-01-10 12:07:46 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint sqlite DeleteTable \
--table "test" \
2025-02-10 12:36:30 +03:00
--db "C:\Users\Administrator\AppData\Local\Temp\cfyaxf0knp1.sqlite"
2025-01-10 12:07:46 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint sqlite DeleteTable ^
--table "test" ^
2025-02-10 12:36:30 +03:00
--db "C:\Users\Administrator\AppData\Local\Temp\cfyaxf0knp1.sqlite"
2025-01-10 12:07:46 +03:00
```
</TabItem>
</Tabs>
```json title="Result"
{
"result": true
}
```