# export-to-sqlite-file

## Description

<mark style="color:purple;">`export-to-sqlite-file`</mark> *adaptor exports a datatable to a SQLite DB file.*

## Inputs

**`sqlite`**\
⁃ Type: `file`\
⁃ Required: Yes\
The SQLite DB file to which data will be exported.

**`data`**\
⁃ Type: `datatable`\
⁃ Required: Yes\
The datatable to be exported.

**`table name`**\
⁃ Type: `text`\
⁃ Required: Yes\
The name of the SQLite table to which the data will be exported.

**`id column name`**\
⁃ Type: `text`\
⁃ Required: No\
The name of the column which contains unique row IDs.

## Outputs

**`sqlite`**\
⁃ Type: `file`\
A file in SQLite format with the exported data.

## Examples

### Example 1: Default behaviour.

#### Inputs:

`sqlite:` data.sqlite

`data:`

| id | code | name           |
| -- | ---- | -------------- |
| 1  | GB   | United Kingdom |
| 2  | TR   | Turkey         |
| 3  | US   | United States  |

`table name:` data

`id column name:` id

#### Outputs:

`sqlite`: data.sqlite

-> Exported datatable to the SQLite file `data.sqlite`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cgps.gitbook.io/data-flo/reference-guide/export-to-sqlite-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
