Package org.craftercms.studio.api.v2.dal
Interface StudioDBScriptRunner
- All Known Implementing Classes:
StudioDBScriptRunnerImpl
public interface StudioDBScriptRunner
Interface for running SQL scripts in the Studio database.
-
Method Summary
-
Method Details
-
execute
Execute the given SQL script file.- Parameters:
sqlScriptPath
- Path to the SQL script file to executesendFullFile
- 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 scriptIOException
- if an error occurs while reading the script file
-
execute
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 scriptIOException
- if an error occurs while reading the script file
-