Skip to main content
Skip table of contents

MotherDuck - Download Query Results to Workflows

Overview

Quickly download the results of a DuckDB query to Workflows. The target file can either be a CSV or Parquet file.

Variables

NameReferenceTypeRequiredDefaultOptionsDescription
Access TokenMOTHERDUCK_TOKENPassword--The API token for programmatic access to MotherDuck
QueryMOTHERDUCK_QUERYAlphanumeric--The SQL query to fetch results for
DatabaseMOTHERDUCK_DATABASEAlphanumeric--The optional database to connect to
File TypeMOTHERDUCK_FILE_TYPESelectcsvCSV: csv

Parquet: parquet
The file type of the target file
Workflows File NameMOTHERDUCK_FILEAlphanumeric--The name of the file with the query results
Workflows Folder NameMOTHERDUCK_FOLDERAlphanumeric--The optional directory to be used to download the query results to

YAML

Below is the YAML template

YAML

source:
  template: MotherDuck - Download Query Results to Workflows
  inputs:
    MOTHERDUCK_TOKEN:
    MOTHERDUCK_QUERY:
    MOTHERDUCK_DATABASE:
    MOTHERDUCK_FILE_TYPE: csv
    MOTHERDUCK_FILE:
    MOTHERDUCK_FOLDER:
  type: TEMPLATE
guardrails:
  retry_count: 1
  retry_wait: 0h0m0s
  runtime_cutoff: 1h0m0s
  exclude_exit_code_ranges:
    - 200
    - 222
    - 249

      
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.