Closed
Conversation
Co-authored-by: contact <contact@ophir.dev>
This commit introduces the initial implementation of the Snowflake driver for SQLx. It includes the core database driver architecture, connection management, basic authentication framework, and example usage. The changes also encompass updates to the workspace configuration, Cargo.toml, and the addition of new files for documentation and examples. Co-authored-by: contact <contact@ophir.dev>
|
Cursor Agent can help with this pull request. Just |
Collaborator
Author
|
@cursoragent Make sure to run cargo clippy and cargo fmt before each commit. Make sure to test everything locally. |
|
⌛ Working on 16 tasks
|
Co-authored-by: contact <contact@ophir.dev>
Collaborator
Author
|
@cursoragent , for local testing and on ci, you can use https://github.com/tekumara/fakesnow And the Any driver integration is mandatory. |
Co-authored-by: contact <contact@ophir.dev>
Collaborator
Author
|
@cursoragent make sure your code is tested on ci and run ci checks locally too cargo clippy --manifest-path sqlx-core/Cargo.toml |
Co-authored-by: contact <contact@ophir.dev>
Integrates Snowflake as a database option within the Any driver, enabling unified database access. This includes updates to connection management, type handling, and query execution. Co-authored-by: contact <contact@ophir.dev>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Add initial Snowflake support to SQLx, including core driver traits, basic type system, and an HTTP connection framework.
This PR lays the foundational architecture for the Snowflake driver, implementing the necessary SQLx traits and an HTTP client for the Snowflake SQL API. While the authentication currently uses a dummy JWT key and full result parsing is not yet implemented, the module compiles, passes basic structural tests, and successfully establishes HTTP communication with a Snowflake instance, providing a solid base for further development.