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

feat: add compile_sql via GraphQL #44

Merged
merged 4 commits into from
Sep 20, 2024
Merged

Conversation

serramatutu
Copy link
Collaborator

This PR introduces a new compile_sql command to the SDK via the GraphQL API. It takes in QueryParameters and returns a str containing the compiled SQL for that query.

I added an integration test for it, and also a usage example file.

This commit adds a new `compile_sql` method to the SDK, which uses the
GraphQL API to generate the compiled SQL given a set of query parameters.
Added an integration test for `compile_sql` that ensures we get data
back from the API for a valid query which contains a `SELECT` statement.
This commit adds a usage example for `compile_sql`.
@serramatutu serramatutu force-pushed the serramatutu/query-compile branch from 391fb3f to cb02e70 Compare September 20, 2024 16:09
@serramatutu serramatutu merged commit 39b6f91 into main Sep 20, 2024
4 checks passed
@serramatutu serramatutu deleted the serramatutu/query-compile branch September 20, 2024 16:59
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