Added support for snowflake database #11
Closed
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.
Hello grafana team,
In my work for Liberty Mutual Insurance, I needed to do some database load testing, and I found that k6, together with xk6-sql, was a powerful and flexible tool that enabled me to quickly and easily run the types of load tests that I needed to do.
One of the database platforms that I needed to test was snowflake. xk6-sql didn't support snowflake, but there is an open source go module for snowflake at: github.com/snowflakedb/gosnowflake. By looking at the code for xk6-sql, I found it was very easy to add a dependency to gosnowflake, and with just a few simple changes, I had a working version that was able to run tests against my snowflake database!
Thank you for providing this great open-source code, and for organizing the code so clearly, so that it was easy for a newbie to add support for another database platform!
This pull request has the changes that I made to enable support for snowflake. If you'd like to merge this in to your project, to allow others to use snowflake as well, I'd be honored. Or if there's some other process I should follow to propose changes and/or submit code, please let me know.
If you're not interested in supporting snowflake as a database, or simply don't consider pull requests from random outsiders, I understand. Please feel free to use the code if you find it helpful, or ignore this PR otherwise.
Thank you, and best wishes to the grafana team!