5.x
versions up to 5.14.x
versions up to 4.23.50
and later 3.x
versionsCompatible | ✅ |
---|---|
Certified | ✅ |
Guaranteed | ✅ Flyway Teams |
Support Level determines the degree of support available for this database (learn more).
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 | Yes |
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 |
/* 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');
Snowflake JDBC supports key-based authentication. To use this, you will need to:
ALTER USER
- for complete
instructions on these steps, refer to Snowflake’s documentationFinally, amend your JDBC connection string with the extra parameters to enable key-based auth and to refer to the
location of the private key:
authenticator=snowflake_jwt&private_key_file=<absolute-location-of-pem-file>
.