Skip to content

Commit

Permalink
feat(driver): add affected rows with exec for RestAPI handler (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Apr 15, 2023
1 parent 62f5754 commit 1e0d167
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "databend-client"
version = "0.1.8"
version = "0.1.9"
edition = "2021"
license = "Apache-2.0"
description = "Databend Client for Rust"
Expand Down
4 changes: 2 additions & 2 deletions driver/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "databend-driver"
version = "0.2.8"
version = "0.2.9"
edition = "2021"
license = "Apache-2.0"
description = "Databend Driver for Rust"
Expand All @@ -21,7 +21,7 @@ flight-sql = ["dep:arrow", "dep:arrow-array", "dep:arrow-cast", "dep:arrow-fligh
[dependencies]
async-trait = "0.1.68"
chrono = { version = "0.4.24", default-features = false, features = ["clock"] }
databend-client = { version = "0.1.8", path = "../core" }
databend-client = { version = "0.1.9", path = "../core" }
dyn-clone = "1.0.11"
http = "0.2.9"
serde = { version = "1.0.156", default-features = false, features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion driver/src/rest_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl Connection for RestAPIConnection {
while let Some(next_uri) = resp.next_uri {
resp = self.client.query_page(&next_uri).await?;
}
Ok(0)
Ok(resp.stats.progresses.write_progress.rows as i64)
}

async fn query_iter(&mut self, sql: &str) -> Result<RowIterator> {
Expand Down

0 comments on commit 1e0d167

Please sign in to comment.