nvim-dbee icon indicating copy to clipboard operation
nvim-dbee copied to clipboard

feat: Snowflake adapter

Open oliverlambson opened this issue 1 year ago • 7 comments

Closes #23

Implemented a Snowflake adapter using gosnowflake.

Steps followed

  1. 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)
  2. Use Redshift adapter files as base templates and modify to work with gosnowflake
  3. Update SQL queries for Driver and Helpers
  4. 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)

image

oliverlambson avatar May 02 '24 13:05 oliverlambson

Bumping this. What would it take to get this merged?

Slanman3755 avatar Sep 05 '24 00:09 Slanman3755