Datasource Paginated Query
Executes a SQL SELECT query in pages and loops until all results are fetched. The SQL must contain {{LIMIT}} and {{OFFSET}} placeholders where page size and offset should be applied.
Pure Function
No
Execute Inputs
Execution
INPUTExecution Input.
Execute Outputs
Loop Body
OUTPUTExecuted for each page of results.
Loops
Complete
OUTPUTFires when the data is successfully inserted into the cube.
Data Inputs
Datasource
INPUTName of the datasource to use.
SQL Query
INPUTThe SQL SELECT query to execute. Must include {{LIMIT}} and {{OFFSET}} placeholders so pagination can be applied. Example (MySQL/Postgres): SELECT * FROM table ORDER BY id LIMIT {{LIMIT}} OFFSET {{OFFSET}}
Parameters
INPUTOptional list of parameters to substitute for ? placeholders.
Data Outputs
Page Index
OUTPUTinteger
Current page index.
Multiple
Rows
OUTPUTarray
List of rows returned by the query.
Multiple
Settings
Throw on SQL Error
BOOLEANIf true, will throw an error if a SQL error occurs during query.
Default: true
Page Size
INTEGERNumber of rows to fetch per page.
Default: 500
Debug
STRINGBreak on node when executing.
Default: No
Options:
NoBeforeInputsBeforeProcessingAfterProcessing