Remove code that didn't make a difference.

This commit is contained in:
Nolan Darilek 2025-04-28 10:01:17 -05:00
parent 6198dcb40d
commit 41c6a7ebba

View file

@ -16,13 +16,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
set preserve_insertion_order = false;
"#,
)?;
let mut stmt = conn.prepare("select * from duckdb_settings()")?;
let mut rows = stmt.query([])?;
while let Some(row) = rows.next()? {
let name: String = row.get(0)?;
let value: String = row.get(1)?;
println!("{}: {}", name, value);
}
let xmin = -97.734375;
let xmax = -97.3828125;
let ymin = 30.234375;
@ -45,12 +38,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
r#"create table {table} as select * from read_parquet(?) where bbox.xmin between ? and ? and bbox.ymin between ? and ?;"#
);
conn.execute(&query, params![root, xmin, xmax, ymin, ymax,])?;
println!("Counting");
conn.query_row(&format!("select count() from {table};"), [], |row| {
let count: usize = row.get(0).unwrap();
println!("{count}");
Ok(())
})?;
}
Ok(())
}