diff --git a/crates/dbx-core/src/schema.rs b/crates/dbx-core/src/schema.rs index 375e57af8..5d5ec40de 100644 --- a/crates/dbx-core/src/schema.rs +++ b/crates/dbx-core/src/schema.rs @@ -10,11 +10,7 @@ pub fn duckdb_query_tables(con: &duckdb::Connection) -> Result(0)?, - table_type: row.get::<_, String>(1)?, - comment: None, - }) + Ok(db::TableInfo { name: row.get::<_, String>(0)?, table_type: row.get::<_, String>(1)?, comment: None }) }) .map_err(|e| e.to_string())?; Ok(rows.filter_map(|r| r.ok()).collect())