Package org.flywaydb.core.internal.util.scanner.filesystem

Examples of org.flywaydb.core.internal.util.scanner.filesystem.FileSystemResource


            int filesExecuted = 0;
            List<File> sqlFiles = new ArrayList<File>();
            collectSqlFiles(baseDirectory, sqlFiles);

            for (File sqlFile : sqlFiles) {
                Resource resource = new FileSystemResource(sqlFile.getAbsolutePath());
                SqlScript script = new SqlScript(resource.loadAsString("UTF-8"), support);
                System.out.format("execute sql file: %s%n", sqlFile.getAbsolutePath());
                script.execute(support.getJdbcTemplate());
                filesExecuted++;
            }
View Full Code Here

TOP

Related Classes of org.flywaydb.core.internal.util.scanner.filesystem.FileSystemResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.