Repository navigation
New plugin: SnowSQL - #161
Merged
SimonBarendse merged 18 commits intoFeb 13, 2023
Merged
SimonBarendse merged 18 commits into
SimonBarendse merged 18 commits into
Conversation
…for snowsql file importer
arunsathiya
reviewed
Jan 24, 2023
arunsathiya
left a comment
Contributor
There was a problem hiding this comment.
This is a great start! I left some comments to improve the importing flow for your consideration.
SimonBarendse
previously approved these changes
Jan 24, 2023
SimonBarendse
left a comment
Member
There was a problem hiding this comment.
Excellent! Snowflake will make for a great addition to the ecosystem!
Arun made some great suggestions in his review. I don't have much to add to that.
Contributor
Author
|
Updated the testing instructions based on recent feedback on the PR. |
hculea
reviewed
Jan 25, 2023
Member
There was a problem hiding this comment.
Looks good! Only one comment, otherwise this is good to go, code-wise.
Thank you for this addition, @williamhpark ! ❤️
SimonBarendse
previously approved these changes
Jan 25, 2023
florisvdg
reviewed
Jan 26, 2023
DCKcode
previously approved these changes
Jan 26, 2023
williamhpark
dismissed stale reviews from DCKcode and SimonBarendse
via
January 26, 2023 22:50
fc02c19
hculea
previously approved these changes
Jan 27, 2023
DCKcode
previously approved these changes
Jan 27, 2023
AndyTitu
approved these changes
Feb 10, 2023
SimonBarendse
approved these changes
Feb 13, 2023
Merged
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.
Summary
Add support for a new plugin for the Snowflake CLI, SnowSQL.
Addresses: #154
Testing
Setup
make snowflake/buildImporter
~/.snowsql/config. Add your Snowflake credentials to this file under[connections]. Initialize the SnowSQL plugin and test the importer using this config file. The credentials should be saved in 1Password successfully. Note: By default, the~/.snowsql/configfile has a[connections]section where the actual credentials are stored, as well as an uncommented[connections.example]section where example credentials are displayed. No matter where[connections.example]is located and even if the example credentials are uncommented, only the true credentials under[connections]should ever be saved by the importer.Provisioner
snowsqlcommand (justsnowsqlshould suffice, but if you want to add connection parameters the available ones are listed here). You should be taken through the authentication flow with the SnowFlake Credentials that were saved in 1Password, and you shouldn't have to enter the credentials manually. Once authenticated, you should enter the SnowSQL shell, from which you can interact with your Snowflake warehouses/databases.snowsqlcommand with each of the following arguments (descriptions can be found here):You should not be prompted to authenticate through the 1Password CLI.
Note: While testing the provisioner, ensure that your credentials are not currently stored in
~/.snowsql/confignor environment variables.Additional Information
snowflakeand the executable name issnowsql.