Skip to content

Enforce read-only queries #166

@cpsievert

Description

@cpsievert

Probably by parsing the SQL string suggested by the model before executing.

For Python, I think we could use https://github.com/tobymao/sqlglot
For R, we may want to wrap something like https://github.com/apache/datafusion-sqlparser-rs (into an optional dependency?)

Additional context https://claude.ai/share/929cdd9d-3ec0-4245-9a4a-b24066356cea

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions