SQL Databases

  1. Prerequisites: Obtain the database host, port, and credentials (username and password) with read access to the databases you want to query.

  2. Configuring Playbooks: Go to Integrations > SQL Databases in the Playbooks dashboard. Enter your database connection details.

  3. Testing the Integration: Create a playbook that includes a step to run a simple SELECT query against your database and verify the results are fetched correctly.


Connection String URI for different databases:

DatabaseConnection String URI format
MySQLmysql+pymysql://user:pass@localhost:3306/db
PostgreSQLpostgresql+psycopg2://user:pass@localhost:5432/db
Trinotrino://user:pass@host:port/catalog/schema
Athena (AWS)awsathena+rest://<AWS_ACCESS_KEY_ID>:<AWS_SECRET_ACCESS_KEY>@athena.<aws-region>.amazonaws.com/<database>?s3_staging_dir=<s3_bucket_for_storing_results>