Class SqlScriptRunnerCached


  • public class SqlScriptRunnerCached
    extends Object
    Created by arcuri82 on 25-Oct-19.
    • Constructor Detail

      • SqlScriptRunnerCached

        public SqlScriptRunnerCached()
    • Method Detail

      • runScriptFromResourceFile

        public static void runScriptFromResourceFile​(Connection connection,
                                                     String... paths)
      • runScriptFromResourceFile

        public static void runScriptFromResourceFile​(Connection connection,
                                                     String resourcePath)
        Execute the SQL commands in the given resource file. The data is cached, so following requests do not need to re-read the same files.