2025-09-22 23:01:00 +03:00
---
sidebar_position: 3
description: Add table column 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';
# Add table column
Adds a new column to an existing table
`Function AddTableColumn(Val Table, Val Name, Val DataType, Val Connection = "") Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Table | --table | String | ✔ | Table name |
| Name | --name | String | ✔ | Column name |
| DataType | --type | String | ✔ | Column data type |
| 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"
2025-10-10 09:59:43 +03:00
Base = "C:\Users\bayse\AppData\Local\Temp\v8_62E7_33.sqlite";
2025-09-22 23:01:00 +03:00
Table = "test";
Name = "new_col";
DataType = "TEXT";
Result = OPI_SQLite.AddTableColumn(Table, Name, DataType, Base);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint sqlite AddTableColumn \
--table "test" \
--name "new_col" \
--type "TEXT" \
2025-10-10 09:59:43 +03:00
--db "C:\Users\bayse\AppData\Local\Temp\sjtajjsz.4ui.sqlite"
2025-09-22 23:01:00 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint sqlite AddTableColumn ^
--table "test" ^
--name "new_col" ^
--type "TEXT" ^
2025-10-10 09:59:43 +03:00
--db "C:\Users\bayse\AppData\Local\Temp\sjtajjsz.4ui.sqlite"
2025-09-22 23:01:00 +03:00
```
</TabItem>
</Tabs>
```json title="Result"
{
"result": true
}
```