Class SQLiteDatabase
java.lang.Object
org.sgrewritten.stargate.database.SQLiteDatabase
- All Implemented Interfaces:
SQLDatabaseAPI
Represents an SQLite database
-
Constructor Summary
Constructors -
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:SQLDatabaseAPIGets a database connection- Specified by:
getConnectionin interfaceSQLDatabaseAPI- Returns:
A database connection
- Throws:
SQLException-If unable to establish a database connection
-
getDriver
- Specified by:
getDriverin interfaceSQLDatabaseAPI- Returns:
The driver this database is using
-