The Run Code step allows you to run simple scripts in popular programming languages. This is often used to transform data or manipulate variables.

We currently support these languages:

  • Javascript
  • Python

Run Code step

We recommend being mindful of security considerations. While we have protections in place to prevent dangerous code execution, you should not surface sensitive secrets in your code.

Options

NameTypeDescription
Connection StringPlain TextThe JDBC connection string to use to connect to the database. Must follow the format: postgres://user:[email protected]:5432/database
QueryCodeThe query you want to run on the database.

Outputs

NameTypeDescription
ResultObjectThe response from the query in JSON format.

Tips

  • We enforce a 60 second timeout per execution to prevent abuse. If your use-cases require longer runtimes, reach out to the Respell team!
  • If you’d like us to support other languages, reach out to the Respell team.