Implemented a Snowflake adapter using gosnowflake.
Steps followed
Add gosnowflake dependency:
go get -u github.com/snowflakedb/gosnowflake@latest
This changed a lot of go.mod and I have no idea if that's expected behaviour (I assumed it would only add required deps, but it seems to have bumped a bunch of versions too. I'm not a go dev, sorry)
Use Redshift adapter files as base templates and modify to work with gosnowflake
Update SQL queries for Driver and Helpers
Test locally in nvim-dbee
I did this by building the binary (go build) and replacing the default binary that the nvim-dbee lua config points to (in my case at /Users/oliverlambson/.local/share/nvim/dbee/bin/dbee, I'm on an M1 Mac)
Manual testing
(sorry had to redact everything because I don't have a dummy snowflake to play with)
Closes #23
Implemented a Snowflake adapter using gosnowflake.
Steps followed
go get -u github.com/snowflakedb/gosnowflake@latest
This changed a lot of go.mod and I have no idea if that's expected behaviour (I assumed it would only add required deps, but it seems to have bumped a bunch of versions too. I'm not a go dev, sorry)go build
) and replacing the default binary that the nvim-dbee lua config points to (in my case at/Users/oliverlambson/.local/share/nvim/dbee/bin/dbee
, I'm on an M1 Mac)Manual testing
(sorry had to redact everything because I don't have a dummy snowflake to play with)