> For the complete documentation index, see [llms.txt](https://docs.tonic.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tonic.ai/fabricate/database-data/generating-and-using-database-data.md).

# Generating and using database data

You can export the data to a variety of formats, and use the data to populate unstructured files.

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Export data</strong><br><br>Export data from a local database to a file or an external database.</td><td></td></tr><tr><td><strong>Generate to a database connection</strong><br><br>Generate data directly to an external database.</td><td><a href="/pages/mcHHaep4a71kmz6f3IPF">/pages/mcHHaep4a71kmz6f3IPF</a></td></tr><tr><td><strong>Use data in unstructured files</strong><br><br>Generate unstructured files that use database data.</td><td><a href="/pages/VYCTIVcudreIx3HFojpW">/pages/VYCTIVcudreIx3HFojpW</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://docs.tonic.ai/fabricate/database-data/generating-and-using-database-data.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.
