The Database block is can connect to any external mySQL or postgres database, and can execute queries on the database. This block is best used to filter and grab data to perform AI analysis on.

Settings

The settings page can be accessed through the sidebar when clicking on the Database block itself. In the settings, you can add secrets, add the connection string, write a query, and toggle options to tringify output and select database type. Secrets and inputs to the Databawse block can be inserted dynamically to the connection string or query.

Secrets

Secrets are where you can store any API Keys you need to call your API. Anything stored in secrets is encrypted and will not be shared when spells are published publicly.