Package com.baremaps.iploc.database
Class SqliteUtils
java.lang.Object
com.baremaps.iploc.database.SqliteUtils
A helper class for creating executing sql scripts onto a SQLite database
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidexecuteResource(String databaseUrl, String resource) Executes the queries contained in a resource file.
-
Constructor Details
-
SqliteUtils
public SqliteUtils()
-
-
Method Details
-
executeResource
public static void executeResource(String databaseUrl, String resource) throws IOException, SQLException Executes the queries contained in a resource file.- Parameters:
databaseUrl- the JDBC urlresource- the path of the resource file- Throws:
SQLExceptionIOException
-