Skip to content

Is it possible to use variables in SQL command or file? #267

@seanadkinson

Description

@seanadkinson

Hi there, thanks for creating this product.

I'd like to re-use the same SQL command across different pipelines, providing a simple variable to change how it works. Take for example:

-   step_type: extract-rds
    host_name: db
    database: mydb
    sql: |
        SELECT id, firstName, lastName
        FROM user u
        WHERE customer = '$CUSTOMER';

Is there a way for me to share this step across pipelines, and to provide $CUSTOMER?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions