# DatabaseManager

{% hint style="info" %}
**It is recommended to use DBMS.**

DBMS automatically uses the driver the website administrator has selected as their preferred option.
{% endhint %}

## Database Management System (DBMS)

DBMS is the main library used to communicate with Saturn's database.

{% content-ref url="/pages/M4dm3NoAlP1qE22ZJ65t" %}
[DBMS](/1.0.0/dev/libraries-and-functions/databasemanager/dbms.md)
{% endcontent-ref %}

##

## Get error

You can check for an error with your query by using the `error()` function in DBMS.

If there is an error a string with the error code will be returned. If there is no error this will return `NULL`


---

# 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.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.
