Raven Run a Query Brick
Purpose | Learn about the various configurations and parameters required for the If{{expression}} else Brick to function correctly. |
---|
Last updated | August 05, 2024 |
---|
What is the Raven Run a Query Brick?
The [raven] run a query Brick is used to run a specific query inside a playbook.
Raven Run a Query Brick Parameters
-
Label: This is where the user can provide a name for the brick.
-
Credentials: Begin by adding the required credentials or
OAuth 2.0 authentication
. This step ensures secure access to the relevant data sources for your query execution. -
Team: Specify the Team ID to define the context for the query execution. Tailor your query to retrieve data specific to the designated team, enhancing precision and relevance.
-
Query: Craft your query using Postgres SQL or PRQL languages. Define the parameters of your query to extract the precise data needed for your Playbook workflow.
- Query example:
SELECT * FROM exampletable
-
Explanation:
SELECT
: Retrieve data from one or more tables.*
: Retrieves everything contained in the table.exampletable
: Name of the table from where the information is being pulled.
For more information on PostgresSQL language follow links bellow:
Raven Run a Query Brick output format
In this section of the documentation the user will learn where are the outputs of the brick stored and its format.
The output variables may vary depending on the input brick providing the data, here are some examples:
-
Name of variable:
query
- Format:
query_id
(String): A unique identifier for the querytotal_count
(Integer): The number of rows returned by the queryrows
(List): The query results
- Format:
-
Name of variable:
python
- Format:
downloads
(List): A list of downloaded records.
- Format: