Skip to content

Commit cc7f46b

Browse files
committed
Merge branch 'release/1.12.1'
2 parents 7d50820 + ae1c27f commit cc7f46b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/fr/maxlego08/sarah/SqliteConnection.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ public Connection connectToDatabase() throws Exception {
2525
databaseFile.createNewFile();
2626
}
2727

28+
try {
29+
Class.forName("org.sqlite.JDBC");
30+
} catch (ClassNotFoundException ignored) {
31+
}
32+
2833
return DriverManager.getConnection("jdbc:sqlite:" + databaseFile.getAbsolutePath());
2934
}
3035

0 commit comments

Comments
 (0)