Skip to content
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

Basic table introspection #63

Merged
merged 7 commits into from
Nov 9, 2023
Merged

Basic table introspection #63

merged 7 commits into from
Nov 9, 2023

Conversation

danieljharvey
Copy link
Collaborator

@danieljharvey danieljharvey commented Nov 9, 2023

What

This implements the most basic table introspection. We use the SQL from HGE, and keep the metadata types the same as ndc-postgres.

How

@danieljharvey danieljharvey requested a review from soupi November 9, 2023 17:02
@@ -0,0 +1,245 @@
//! Configuration and state for our connector.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved from src/configuration.rs

pub async fn configure(
configuration: &RawConfiguration,
) -> Result<RawConfiguration, connector::UpdateConfigurationError> {
let mssql_pool = create_mssql_pool(configuration).await.unwrap();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes start in here.

@danieljharvey danieljharvey force-pushed the djh/table-introspection branch from da9f485 to 92e2421 Compare November 9, 2023 17:23
@@ -0,0 +1,210 @@
//! Implement the `/schema` endpoint to return the connector's schema.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy pasta'd entirely from ndc-postgres

@danieljharvey danieljharvey force-pushed the djh/table-introspection branch from bbf13d2 to 0705070 Compare November 9, 2023 17:25
Copy link
Contributor

@plcplc plcplc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks plausible

@danieljharvey danieljharvey added this pull request to the merge queue Nov 9, 2023
Merged via the queue into main with commit 4617bd9 Nov 9, 2023
6 checks passed
@SamirTalwar SamirTalwar deleted the djh/table-introspection branch November 20, 2023 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants