Snowflake

Supported Versions

  • 3.50 and later 3.x versions

Drivers

URL format jdbc:snowflake://account.snowflakecomputing.com/?db=database&warehouse=warehouse&role=role (optionally &schema=schema to specify current schema)
Ships with Flyway Command-line No
Maven Central coordinates net.snowflake:snowflake-jdbc:3.6.23
Supported versions 3.6.23 and later
Default Java class net.snowflake.client.jdbc.SnowflakeDriver

SQL Script Syntax

Compatibility

  • DDL exported by the Snowflake web GUI can be used unchanged in a Flyway migration
  • Any SQL script executed by Flyway, can be executed by the Snowflake web GUI (after the placeholders have been replaced)
  • The Snowflake driver requires Java 8+. There is no support from Snowflake for Java 7 users.

Example

/* Single line comment */
CREATE TABLE test_data (
  value VARCHAR(25) NOT NULL PRIMARY KEY
);

/*
Multi-line
comment
*/

-- Sql-style comment

-- Placeholder
INSERT INTO ${tableName} (name) VALUES ('Mr. T');

Limitations

  • None

SQLite