
com.github.jmgilmour.parker.sqlite.SQLiteDataStore Maven / Gradle / Ivy
The newest version!
package com.github.jmgilmour.parker.sqlite;
import java.sql.Driver;
import java.sql.SQLException;
import org.sqlite.JDBC;
import com.github.jmgilmour.parker.sql.core.embedded.AbstractEmbeddedSQLDataStore;
/**
* {@link AbstractEmbeddedSQLDataStore} instance which is backed by a SQLite
* database.
*/
public class SQLiteDataStore extends AbstractEmbeddedSQLDataStore {
/**
* Constructor which uses the default directory.
*
* @throws SQLException
* if there is an error initializing
*/
public SQLiteDataStore() throws SQLException {
super();
}
/**
* Constructor which uses the specified directory.
*
* @param dir
* used to store the database
* @throws SQLException
* if there is an error initializing
*/
public SQLiteDataStore(String dir) throws SQLException {
super(dir);
}
/**
* {@inheritDoc}
*
* In this case, and instance of {@link JDBC}.
*/
@Override
public Driver loadDriver() {
return new JDBC();
}
/**
* Returns "sqlite".
*/
@Override
public String vendor() {
return "sqlite";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy