-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create a separate crate for configuration #121
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
dc6ca16
create a separate crate for configuration
pranshi06 a49d536
Merge branch 'main' into py/configuration-crate-refactor
pranshi06 bd04d44
remove version1 directory in the configuration crate
pranshi06 36b732c
remove unused dependencies
pranshi06 26d783f
try adding aarch linux binary
pranshi06 8458263
attempt to remove configuration dependency on ndc-sdk
pranshi06 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
name = "ndc-sqlserver-configuration" | ||
version.workspace = true | ||
edition.workspace = true | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[dependencies] | ||
query-engine-metadata = { path = "../query-engine/metadata" } | ||
query-engine-execution = { path = "../query-engine/execution" } | ||
|
||
|
||
schemars = { version = "0.8.16", features = ["smol_str", "preserve_order"] } | ||
serde = "1.0.198" | ||
serde_json = { version = "1.0.116", features = ["raw_value"] } | ||
tiberius = { version = "0.12.2", default-features = false, features = ["rustls"] } | ||
bb8 = "0.8.1" | ||
bb8-tiberius = "0.15.0" | ||
thiserror = "1.0.59" | ||
prometheus = "0.13.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pub const CONFIGURATION_FILENAME: &str = "configuration.json"; | ||
pub const CONFIGURATION_JSONSCHEMA_FILENAME: &str = "schema.json"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
//! Errors that can be thrown when processing configuration. | ||
|
||
/// The errors that can be thrown when processing configuration. | ||
/// | ||
/// This is effectively a copy of the `ParseError` enum in the `ndc-sdk` crate. However, we don't | ||
/// want a dependency on that crate here, as this crate is used by the CLI. Duplicating here and | ||
/// converting the values later means we can avoid that dependency. | ||
#[derive(Debug, thiserror::Error)] | ||
pub enum Error { | ||
#[error("parse error on {file_path}:{line}:{column}: {message}")] | ||
ParseError { | ||
file_path: std::path::PathBuf, | ||
line: usize, | ||
column: usize, | ||
message: String, | ||
}, | ||
#[error("invalid configuration version, expected 1, got {version} in {file_path}")] | ||
InvalidConfigVersion { | ||
version: u32, | ||
file_path: std::path::PathBuf, | ||
}, | ||
|
||
#[error("I/O error: {0}")] | ||
IoErrorButStringified(String), | ||
|
||
#[error("I/O error: {0}")] | ||
IoError(#[from] std::io::Error), | ||
} |
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
...es/ndc-sqlserver/src/configuration/mod.rs → crates/configuration/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
pub mod configuration; | ||
pub mod connector; | ||
pub mod explain; | ||
pub mod query; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the
ndc-sdk
crate introducing the indirect dependency onopenssl
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, ndc-sdk depends on
reqwest
which in turn depends onopenssl