Skip to content

Support Snowflake in the SQL language server #31

Description

@Artmann

Add Snowflake support to the SQL language server so Snowflake SQL blocks in the Deepnote VS Code extension get table and column completions and diagnostics.

Current state

packages/server/src/database_libs has clients for BigQuery, MySQL, Postgres and SQLite (BigqueryClient.ts, MysqlClient.ts, PostgresClient.ts, Sqlite3Client.ts). There is no Snowflake client, so a Snowflake integration in the extension gets no schema-aware completions.

Needed

  • A SnowflakeClient implementing AbstractClient (schema, table and column introspection, likely via snowflake-sdk or INFORMATION_SCHEMA queries).
  • Connection configuration for Snowflake in getDatabaseClient and the settings schema (account, warehouse, database, schema, role, auth method).
  • Dialect handling for Snowflake-specific syntax where the parser needs it.

The extension side is a dependency bump plus mapping its Snowflake integration config onto the new connection settings. It was originally filed as #31.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions