Skip to content

Snowflake

Drizby connects to Snowflake using drizzle-snowflake and the official snowflake-sdk driver.

Snowflake uses structured connection fields rather than a connection string:

FieldRequiredExample
AccountYesorgname-accountname
UsernameYesmy_user
PasswordYesmy_password
DatabaseYesMY_DB
WarehouseNoCOMPUTE_WH
SchemaNoPUBLIC
RoleNoACCOUNTADMIN

Snowflake schemas use snowflakeTable and column types from drizzle-snowflake:

import { snowflakeTable, integer, text, real, timestamp, varchar } from 'drizzle-snowflake'
export const employees = snowflakeTable('employees', {
id: integer('id').primaryKey(),
name: text('name').notNull(),
email: text('email'),
salary: real('salary'),
tags: varchar('tags', { length: 100 }),
createdAt: timestamp('created_at', { mode: 'date' }).defaultNow()
})
  • Snowflake is cloud-only — you need a Snowflake account to connect.
  • The timestamp column supports an optional { mode: 'date' | 'string' } config. Defaults to 'date'.
  • Snowflake does not support array columns — use comma-separated strings in varchar instead.