kndndrj / nvim-dbee

Interactive database client for neovim
GNU General Public License v3.0
606 stars 39 forks source link

feat: Snowflake adapter #109

Open oliverlambson opened 2 months ago

oliverlambson commented 2 months ago

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