1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-31 22:05:13 +02:00
OpenIntegrations/docs/en/md/SQLite/Orm/Delete-table.mdx
Vitaly the Alpaca (bot) 296e5c5dd8 Main build (Jenkins)
2025-01-12 19:10:21 +03:00

61 lines
1.3 KiB
Plaintext
Vendored

---
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_E607_1d.sqlite";
Table = "test";
Result = OPI_SQLite.DeleteTable(Table, Base);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint sqlite DeleteTable \
--table "test" \
--db "C:\Users\Administrator\AppData\Local\Temp\3pbdgv5r4nm.sqlite"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint sqlite DeleteTable ^
--table "test" ^
--db "C:\Users\Administrator\AppData\Local\Temp\3pbdgv5r4nm.sqlite"
```
</TabItem>
</Tabs>
```json title="Result"
{
"result": true
}
```