MCPcopy Create free account
hub / github.com/M66B/FairEmail / getSqliteVersion

Method getSqliteVersion

app/src/main/java/eu/faircode/email/DB.java:150–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148 ));
149
150 public static String getSqliteVersion() {
151 try (SQLiteDatabase db = SQLiteDatabase.create(null)) {
152 try (Cursor cursor = db.rawQuery(
153 "SELECT sqlite_version() AS sqlite_version", null)) {
154 if (cursor.moveToNext())
155 return cursor.getString(0);
156 }
157 } catch (Throwable ex) {
158 Log.e(ex);
159 }
160 return null;
161 }
162
163 public static boolean hasJson() {
164 return hasJson;

Callers 2

attachEnvironmentMethod · 0.95
_hasJsonMethod · 0.95

Calls 4

eMethod · 0.95
moveToNextMethod · 0.80
createMethod · 0.45
getStringMethod · 0.45

Tested by

no test coverage detected