1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-25 12:24:39 +02:00
OpenIntegrations/docs/en/md/SQLite/Orm/Clear-table.mdx
Vitaly the Alpaca (bot) ad6ba5cbe8 Main build (Jenkins)
2025-03-11 21:09:03 +03:00

61 lines
1.2 KiB
Plaintext
Vendored

---
sidebar_position: 8
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Clear table
Clears the database table
`Function ClearTable(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\Administrator\AppData\Local\Temp\v8_1CE5_34.sqlite";
Table = "test";
Result = OPI_SQLite.ClearTable(Table, Base);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint sqlite ClearTable \
--table "test" \
--db "C:\Users\Administrator\AppData\Local\Temp\j1xc4k40xk2.sqlite"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint sqlite ClearTable ^
--table "test" ^
--db "C:\Users\Administrator\AppData\Local\Temp\j1xc4k40xk2.sqlite"
```
</TabItem>
</Tabs>
```json title="Result"
{
"result": true
}
```