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

Method get_table_schema

src/session/db_handler.rs:2204–2207  ·  view source on GitHub ↗

Get table schema

(&self, table_name: &str)

Source from the content-addressed store, hash-verified

2202
2203 /// Get table schema
2204 pub async fn get_table_schema(&self, table_name: &str) -> Result<crate::cache::schema::TableSchema, rusqlite::Error> {
2205 let conn = Self::create_initial_connection(&self.db_path, &Config::load())?;
2206 self.schema_cache.get_or_load(&conn, table_name)
2207 }
2208
2209 /// Get schema type for a column using a dedicated connection
2210 pub async fn get_schema_type(&self, table_name: &str, column_name: &str) -> Result<Option<String>, rusqlite::Error> {

Callers

nothing calls this directly

Calls 1

get_or_loadMethod · 0.80

Tested by

no test coverage detected