← Back to all posts

SQL Database

On this page

Purpose

SQL Database runs a SQL query against a SQLAlchemy-compatible database and returns the result as a DataFrame.

When to use it

  • Read rows from a database table.
  • Join data for a downstream DataFrame step.
  • Test a limited query against a development database.

Required setup

Provide a valid Database URL. Normal mode also needs a SQL query, while Agent Core supplies the query in Tool Mode. The component is Builder-only. Use a dedicated least-privilege database account, and do not put production credentials or sensitive query results in screenshots.

How to use it

Tool Mode

  1. Add SQL Database, enter the Database URL, and enable Tool Mode.
  2. Connect the tool output to Agent Core. The Agent can supply the SQL query, so use a read-only account with access only to the required data.
  3. Test the tool with the smallest useful result set.

Normal mode

  1. Enter the Database URL, such as a redacted sqlite:///example.db value for local testing.
  2. Enter or connect SQL Query.
  3. Connect Result Table to a DataFrame-aware component.
  4. Test the query with the smallest useful result set.

Configuration

SettingWhat it controlsRecommended starting point
Database URLConnects to the target database.Use a dedicated read-only account where possible.
SQL QueryDefines the query to execute.Start with a bounded SELECT query.
Include ColumnsDoes not affect Result Table or Agent tool output.Leave unchanged.
Add ErrorDoes not change the component output or error behavior.Leave disabled.

Expected result

Tool Mode gives Agent Core a SQL query tool. Normal mode returns successful query results as a DataFrame. Connection and query failures return to the flow. The component runs the supplied SQL, so Arkus does not make an unsafe query safe.

Reference details

The Database URL is stored as plain text. Use a dedicated least-privilege account, avoid production credentials where possible, and rotate any exposed credential.

← Back to all posts