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

Method invalidate_table

src/validator/string_constraints.rs:184–187  ·  view source on GitHub ↗

Clear cache for a specific table (e.g., after ALTER TABLE)

(&self, table_name: &str)

Source from the content-addressed store, hash-verified

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) {

Callers 1

test_cache_invalidationFunction · 0.45

Calls 1

removeMethod · 0.45

Tested by 1

test_cache_invalidationFunction · 0.36