Get table schema
(&self, table_name: &str)
| 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> { |
nothing calls this directly
no test coverage detected