Interface StudioDBScriptRunner

All Known Implementing Classes:
StudioDBScriptRunnerImpl

public interface StudioDBScriptRunner
Interface for running SQL scripts in the Studio database.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    execute(Path sqlScriptPath)
    Execute the given SQL script file.
    void
    execute(Path sqlScriptPath, boolean sendFullFile)
    Execute the given SQL script file.
  • Method Details

    • execute

      void execute(Path sqlScriptPath, boolean sendFullFile) throws SQLException, IOException
      Execute the given SQL script file.
      Parameters:
      sqlScriptPath - Path to the SQL script file to execute
      sendFullFile - if true, the whole script will be sent to the DB, otherwise it will be partitioned into chunks
      Throws:
      SQLException - if an error occurs while executing the script
      IOException - if an error occurs while reading the script file
    • execute

      default void execute(Path sqlScriptPath) throws SQLException, IOException
      Execute the given SQL script file.
      Parameters:
      sqlScriptPath - Path to the SQL script file to execute
      Throws:
      SQLException - if an error occurs while executing the script
      IOException - if an error occurs while reading the script file