Remove code that didn't make a difference.
This commit is contained in:
parent
6198dcb40d
commit
41c6a7ebba
1 changed files with 0 additions and 13 deletions
13
src/main.rs
13
src/main.rs
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue