Clear cache for a specific table (e.g., after ALTER TABLE)
(&self, table_name: &str)
| 182 | |
| 183 | /// Clear cache for a specific table (e.g., after ALTER TABLE) |
| 184 | pub fn invalidate_table(&self, table_name: &str) { |
| 185 | let mut cache = self.constraints.write().unwrap(); |
| 186 | cache.remove(table_name); |
| 187 | } |
| 188 | |
| 189 | /// Clear entire cache |
| 190 | pub fn clear_cache(&self) { |