Class SQLiteDatabase
java.lang.Object
org.sgrewritten.stargate.database.SQLiteDatabase
- All Implemented Interfaces:
SQLDatabaseAPI
Represents an SQLite database
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets a database connection
-
Constructor Details
-
SQLiteDatabase
Instantiates a new SQL database- Parameters:
databaseFile
-The database file to load
- Throws:
SQLException
-If unable to setup SQLite for the database file
-
-
Method Details
-
getConnection
Description copied from interface:SQLDatabaseAPI
Gets a database connection- Specified by:
getConnection
in interfaceSQLDatabaseAPI
- Returns:
A database connection
- Throws:
SQLException
-If unable to establish a database connection
-
getDriver
- Specified by:
getDriver
in interfaceSQLDatabaseAPI
- Returns:
The driver this database is using
-