Package com.wakaleo.schemaspy.util
Class DatabaseHelper
java.lang.Object
com.wakaleo.schemaspy.util.DatabaseHelper
Set up a simple embedded database to run SchemaSpy on. We use a Derby database.
- Author:
- john
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetupDatabase(String sqlCreateScript) Create an embedded Derby database using a simple SQL script.
-
Constructor Details
-
DatabaseHelper
public DatabaseHelper()
-
-
Method Details
-
setupDatabase
public static void setupDatabase(String sqlCreateScript) throws SQLException, IOException, ClassNotFoundException Create an embedded Derby database using a simple SQL script. The SQL commands should each be on a single line. "--" and "//" can be used for comments.- Parameters:
sqlCreateScript- Path to a file containing the SQL creation script.- Throws:
SQLExceptionIOExceptionClassNotFoundException
-