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 final void
setupDatabase
(String sqlCreateScript) Create an embedded Derby database using a simple SQL script.
-
Constructor Details
-
DatabaseHelper
public DatabaseHelper()
-
-
Method Details
-
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
-