Package com.wakaleo.schemaspy.util
Class DatabaseHelper
- java.lang.Object
-
- com.wakaleo.schemaspy.util.DatabaseHelper
-
public class DatabaseHelper extends Object
Set up a simple embedded database to run SchemaSpy on. We use a Derby database.- Author:
- john
-
-
Constructor Summary
Constructors Constructor Description DatabaseHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
setupDatabase(String sqlCreateScript)
Create an embedded Derby database using a simple SQL script.
-
-
-
Method Detail
-
setupDatabase
public static final void setupDatabase(String sqlCreateScript) throws SQLException, FileNotFoundException, 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:
SQLException
FileNotFoundException
IOException
ClassNotFoundException
-
-