Share your experience with Database DevOps by taking part in the 2021 State of Database DevOps survey Take the survey

Derby

Supported Versions

Driver

URL format jdbc:derby:subsubprotocol:databaseName
Ships with Flyway Command-line Yes
Maven Central coordinates org.apache.derby:derbyclient:10.14.1.0
Supported versions 10.11 and later
Default Java class org.apache.derby.jdbc.EmbeddedDriver

SQL Script Syntax

Compatibility

  • DDL exported by Derby can be used unchanged in a Flyway migration
  • Any Derby SQL script executed by Flyway, can be executed by the Derby tools (after the placeholders have been replaced)
  • The Derby 10.15 driver requires Java 9+. Flyway users who are constrained to use Java 8 should not upgrade to Derby 10.15.

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

Snowflake