Skip to content

Support bind variables #56

@mirek26

Description

@mirek26

Any plans to support bind variables? https://docs.snowflake.com/en/sql-reference/bind-variables

For example, you can do this in Python:

con.cursor().execute(
    "SELECT * FROM your_table WHERE id = ? AND name = ?",
    (10, 'Henry')  # Parameters
)

Which prevents SQL injection in case the parameters are user-provided. Not supporting this requires different mechanisms to prevent SQL inejction.

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