# Database Actions

A database action defines what format the function should return the data it retrieves from the database in.

| Action         | Description                                 |
| -------------- | ------------------------------------------- |
| `all:assoc`    | Fetches all rows as an associative array.   |
| `all:num`      | Fetches all rows as a numerical array.      |
| `first:assoc`  | Fetches the first row as an array           |
| `first:num`    | Fetches the first row as a numerical array. |
| `first:object` | Fetches the first row as a JSON Object      |
| `raw`          | Returns the raw result with no processing.  |

##


---

# 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://docs.saturncms.net/1.0.0/dev/libraries-and-functions/databasemanager/database-actions.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.
