Flyway: Use java.nio.Path to scan filesystem and read SQL files

Created on 25 Sep 2017  路  3Comments  路  Source: flyway/flyway

This new feature allows:

  • To read file from remote file systems: I want to read SQL files from S3 (using S3 file system provider ) or from a Zip file not in classpath ( Zip file system provider) )
  • To read file from classloader as if it was as local file: Path path=Paths.get(classLoader.getResource(resourceName).toURI());

However, it's probably not compatible with Android as it requires Java 7.

feature

Most helpful comment

Would you accept a PR?

All 3 comments

Thanks for the suggestion. While those features are neat, the lack thereof hasn't seemed to be much of a deal breaker for users so far. But it's an interesting idea to consider for the future.

Would you accept a PR?

We don't think this is the right thing. S3 locations are on the roadmap : https://github.com/flyway/flyway/issues/1961.

Feel free to create a particular issue for reading from Zip archives etc.

Was this page helpful?
0 / 5 - 0 ratings