Cache schema for a table
(&self, table_name: String, schema: TableSchema)
| 57 | |
| 58 | /// Cache schema for a table |
| 59 | pub fn insert(&self, table_name: String, schema: TableSchema) { |
| 60 | let mut cache = self.cache.write().unwrap(); |
| 61 | |
| 62 | cache.insert(table_name, CacheEntry { |
| 63 | schema, |
| 64 | cached_at: Instant::now(), |
| 65 | }); |
| 66 | } |
| 67 | |
| 68 | /// Invalidate cache for a specific table (e.g., after ALTER TABLE) |
| 69 | pub fn invalidate(&self, table_name: &str) { |
no outgoing calls
no test coverage detected