Skip to content
Snippets Groups Projects
Commit 06aecf8f authored by adam-m's avatar adam-m
Browse files

add info message indicating sqlite version and mode it loaded (native/pure java)

parent 3585d09b
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@
<java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/3">
<compilation-unit>
<package-root>src</package-root>
<classpath mode="compile">lib;lib/diffutils-1.2.1.jar</classpath>
<classpath mode="compile">lib;lib/diffutils-1.2.1.jar;lib/sqlite-jdbc-3.7.8-SNAPSHOT.jar</classpath>
<built-to>build</built-to>
<source-level>1.6</source-level>
</compilation-unit>
......
......@@ -43,6 +43,7 @@
import org.sleuthkit.datamodel.TskData.FileKnown;
import org.sleuthkit.datamodel.TskData.TSK_DB_FILES_TYPE_ENUM;
import org.sleuthkit.datamodel.TskData.TSK_FS_META_TYPE_ENUM;
import org.sqlite.SQLiteJDBCLoader;
/**
* Represents the case database and abstracts out the most commonly used
......@@ -277,6 +278,11 @@ private void configureDB() throws TskCoreException {
//allow to query while in transaction - no need read locks
statement.execute("PRAGMA read_uncommitted = True;");
statement.close();
logger.log(Level.INFO, String.format("sqlite-jdbc version %s loaded in %s mode",
SQLiteJDBCLoader.getVersion(), SQLiteJDBCLoader.isNativeMode()
? "native" : "pure-java"));
} catch (SQLException e) {
throw new TskCoreException("Couldn't configure the database connection", e);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment