Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derby ClientDriver support #909

vaesbart opened this issue Dec 14, 2014 · 2 comments

Derby ClientDriver support #909

vaesbart opened this issue Dec 14, 2014 · 2 comments


Copy link

I was trying to use Flyway in my JavaFX project the other day, which uses a Derby / JavaDB database.
To my surprise Flyway currently only supports the EmbeddedDriver, and not the ClientDriver.

Seeing that the Embedded driver is more limited (single app that accesses db) than the ClientDriver (client/server environment) I'd like to ask for ClientDriver support.

I found this code in the class, which seems to be a good starting point ?
155 if (url.startsWith("jdbc:derby:")) {
156 return "org.apache.derby.jdbc.EmbeddedDriver";
157 }

Copy link

If you use the API, you can pass in your own datasource.

For the other clients, you can specify the driver class to use with flyway.driver.

But the driver autodetection, based on the url, could indeed be improved. Then the client driver could also ship by default with the command-line tool.

Copy link

Ok, I reviewed my code and managed to 'attach' my datasource to flyway, so it works :)

axelfontaine pushed a commit to flyway/ that referenced this issue Feb 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants