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

Method insert

src/cache/schema.rs:59–66  ·  view source on GitHub ↗

Cache schema for a table

(&self, table_name: String, schema: TableSchema)

Source from the content-addressed store, hash-verified

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

Callers 5

build_table_schemaMethod · 0.45
preload_all_schemasMethod · 0.45
get_or_loadMethod · 0.45
ensure_schema_loadedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected