From a42e8ee1277b990e7af6c9678d3437ebcda5ca8d Mon Sep 17 00:00:00 2001 From: Benoit Ranque Date: Thu, 28 Sep 2023 08:20:46 -0400 Subject: [PATCH] rename project, update sdk dep --- Cargo.lock | 40 ++++++++++++++++++++-------------------- Cargo.toml | 4 ++-- src/connector.rs | 2 -- 3 files changed, 22 insertions(+), 24 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 75c2154..b11cf4c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -313,23 +313,6 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cd7cc57abe963c6d3b9d8be5b06ba7c8957a930305ca90304f24ef040aa6f961" -[[package]] -name = "clickhouse_ndc" -version = "0.1.0" -dependencies = [ - "async-trait", - "indexmap 1.9.3", - "ndc-sdk", - "peg", - "prometheus", - "reqwest", - "schemars", - "serde", - "serde_json", - "strum", - "tokio", -] - [[package]] name = "colorchoice" version = "1.0.0" @@ -1001,10 +984,27 @@ dependencies = [ "tempfile", ] +[[package]] +name = "ndc-clickhouse" +version = "0.1.0" +dependencies = [ + "async-trait", + "indexmap 1.9.3", + "ndc-sdk", + "peg", + "prometheus", + "reqwest", + "schemars", + "serde", + "serde_json", + "strum", + "tokio", +] + [[package]] name = "ndc-client" version = "0.1.0" -source = "git+http://github.com/hasura/ndc-spec.git?tag=v0.1.0-rc.5#0842f61fc5e29d19994ff3439abb8d7eabc28449" +source = "git+http://github.com/hasura/ndc-spec.git?tag=v0.1.0-rc.6#af2a6fa447617850ac0600f81dbe29b664f010cf" dependencies = [ "async-trait", "indexmap 1.9.3", @@ -1021,7 +1021,7 @@ dependencies = [ [[package]] name = "ndc-sdk" version = "0.1.0" -source = "git+https://github.com/hasura/ndc-hub.git?rev=7603f34#7603f34fe9a2d0544747ca43695c913d10ea0722" +source = "git+https://github.com/hasura/ndc-hub.git?rev=4d14c4e#4d14c4e37217edfc6c5c64915a955e9d46b3a946" dependencies = [ "async-trait", "axum", @@ -1054,7 +1054,7 @@ dependencies = [ [[package]] name = "ndc-test" version = "0.1.0" -source = "git+http://github.com/hasura/ndc-spec.git?tag=v0.1.0-rc.5#0842f61fc5e29d19994ff3439abb8d7eabc28449" +source = "git+http://github.com/hasura/ndc-spec.git?tag=v0.1.0-rc.6#af2a6fa447617850ac0600f81dbe29b664f010cf" dependencies = [ "async-trait", "clap", diff --git a/Cargo.toml b/Cargo.toml index d77c39b..d0cb62a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "clickhouse_ndc" +name = "ndc-clickhouse" version = "0.1.0" edition = "2021" @@ -11,7 +11,7 @@ tokio = { version = "1.27.0", features = [ "rt-multi-thread", "signal", ] } -ndc-sdk = { git = "https://github.com/hasura/ndc-hub.git", rev = "7603f34", package = "ndc-sdk" } +ndc-sdk = { git = "https://github.com/hasura/ndc-hub.git", rev = "4d14c4e", package = "ndc-sdk" } peg = "0.8.1" async-trait = "0.1.72" prometheus = "0.13.3" diff --git a/src/connector.rs b/src/connector.rs index be01446..ccec6c7 100644 --- a/src/connector.rs +++ b/src/connector.rs @@ -11,7 +11,6 @@ use ndc_sdk::{ }, models, }; -use std::collections::BTreeMap; use self::{config::ServerConfig, state::ServerState}; @@ -51,7 +50,6 @@ impl Connector for ClickhouseConnector { /// returning a configuration error or a validated [`Connector::Configuration`]. async fn validate_raw_configuration( configuration: &Self::RawConfiguration, - _region_routing: &BTreeMap>, ) -> Result { // todo: validate config. // todo: we should take an owned configuration here.