Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/rust/python-package/sql_sanitizer/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sql_sanitizer"
version = "0.1.3"
version = "0.1.4"
edition.workspace = true
authors.workspace = true
license.workspace = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
description: "Rust-backed SQL statement sanitizer — blocks risky DDL/DML and WHERE-clause-less mutations"
author: "ContextForge Contributors"
version: "0.1.3"
version: "0.1.4"
kind: "cpex_sql_sanitizer.sql_sanitizer.SQLSanitizerPlugin"
available_hooks:
- "prompt_pre_fetch"
Expand Down
4 changes: 3 additions & 1 deletion plugins/rust/python-package/sql_sanitizer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ pub struct SqlSanitizerConfig {
pub block_update_without_where: bool,
/// Strip `--` and `/* */` comments before analysis.
pub strip_comments: bool,
/// Heuristic check for non-parameterized interpolation (`+`, `{…}`, `%.`).
/// Require parameterized queries. Flags interpolation markers (`+`, `%s`, `{…}`)
/// and inline literals (`42`, `'Alice'`). Non-SQL fields are skipped via a keyword
/// gate. Most precise when `fields` names only the SQL-bearing fields.
pub require_parameterization: bool,
/// Return `continue_processing=False` when a violation is found.
pub block_on_violation: bool,
Expand Down
Loading
Loading