22 lines
617 B
Java
22 lines
617 B
Java
package de.vanitasvitae.fasel.db.java;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
import com.j256.ormlite.jdbc.JdbcConnectionSource;
|
|
import com.j256.ormlite.support.ConnectionSource;
|
|
import de.vanitasvitae.fasel.db.AbstractDatabase;
|
|
|
|
public class JavaAccountDatabase extends AbstractDatabase {
|
|
|
|
public JavaAccountDatabase() throws SQLException {
|
|
super();
|
|
}
|
|
|
|
@Override
|
|
public ConnectionSource getConnectionSource() throws SQLException {
|
|
ConnectionSource connectionSource =
|
|
new JdbcConnectionSource("jdbc:h2:~/.local/share/fasel/db/fasel");
|
|
return connectionSource;
|
|
}
|
|
}
|