feat(mcp): centralize connection access policies

This commit is contained in:
二丫讲梵 authored and GitHub committed 2026-07-20 22:47:40 +08:00
1 parent 29f493f7da
commit d642d01eac
56 files changed
+6393 -617

No files matched your search

+1 -1
View File
@@ -474,7 +474,7 @@ fn has_extra_statement_after_semicolon(sql: &str) -> bool {
stripped.split(';').skip(1).any(|part| !part.trim().is_empty())
}
fn strip_sql_comments(sql: &str) -> String {
pub(crate) fn strip_sql_comments(sql: &str) -> String {
let mut output = String::with_capacity(sql.len());
let mut chars = sql.chars().peekable();
let mut in_line_comment = false;