> For the complete documentation index, see [llms.txt](https://help.novacuraflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.novacuraflow.com/6.11/development/portal/portlets/table/database-source.md).

# Database source

### Fetching data from databases with queries

When configuring the table portlet and want to fetch data from a database using a flow db connector follow these steps:

Data source configuration enables the portlet to execute specified queries towards the chosen database connector.

* **Database connector** - Select which connector that the query will execute against.
* **Your query** - Text field where queries can be written
* **Page Size** - Amount of rows showed on each page
* **Default Sort** - List of columns of which the sorting should be done by default.
* **Default column width** - The default width that all columns will have in pixels.
* **Database column window** - Modify how the columns will be shown in the table portlet.

The Add and Map All Columns adds a column or all columns and their respective values to what is displayed in the portlet.

* **Datasource Columns** - A list of all columns fetched from the query.
* **Column Name** - Set the display name of that column.
* **Width** - How wide (in pixels) the column should be, leave blank to use default.
* **Lov** - List of values, only used when you created a list of values.
* **Editor** - Set what kind of data you can input into the column cells.
* **Length** - todo
* **Editable** - Checkbox if this column is editable or not.
* **Hidden** - Checkbox whether to show the column or not.&#x20;

![](/files/-M-trFsAci-eBAAIBRTg)


---

# 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, and the optional `goal` query parameter:

```
GET https://help.novacuraflow.com/6.11/development/portal/portlets/table/database-source.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
