MCPcopy Create free account
hub / github.com/erans/pgsqlite / is_sensitive_table

Method is_sensitive_table

src/security/sql_injection_detector.rs:439–450  ·  view source on GitHub ↗
(&self, table_name: &str)

Source from the content-addressed store, hash-verified

437 }
438
439 fn is_sensitive_table(&self, table_name: &str) -> bool {
440 let sensitive_tables = [
441 "information_schema",
442 "pg_user", "pg_shadow", "pg_roles", "pg_database",
443 "pg_tables", "pg_views", "pg_indexes",
444 "sqlite_master", "sqlite_sequence",
445 "__pgsqlite_schema", "__pgsqlite_enums",
446 "sys", "sysobjects", "syscolumns"
447 ];
448
449 sensitive_tables.iter().any(|&sensitive| table_name.contains(sensitive))
450 }
451
452 /// Fallback pattern-based analysis when SQL parsing fails
453 fn fallback_pattern_analysis(&self, query: &str) -> Result<SqlAnalysisResult, PgSqliteError> {

Callers 1

analyze_table_factorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected