> For the complete documentation index, see [llms.txt](https://docs.saturncms.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.saturncms.net/1.0.0/dev/libraries-and-functions/databasemanager.md).

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