Package org.reldb.dbLogger
Class SQLiteDatabase
java.lang.Object
org.reldb.dbLogger.Database
org.reldb.dbLogger.SQLiteDatabase
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class SQLiteDatabase extends Database
A standard JDBC connection to a SQLite database.
-
Constructor Summary
Constructors Constructor Description SQLiteDatabase(java.lang.String dbPath)
Create a connection to a SQLite database. -
Method Summary
Methods inherited from class org.reldb.dbLogger.Database
cleanSqlIdentifier, close, getConnection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SQLiteDatabase
public SQLiteDatabase(java.lang.String dbPath) throws java.sql.SQLExceptionCreate a connection to a SQLite database.- Parameters:
dbPath
- path and filename of database file. E.g., "/tmp/mydatabase.sqlite"- Throws:
java.sql.SQLException
- error.
-