List of usage examples for android.database.sqlite SQLiteDatabase getThreadDefaultConnectionFlags
int getThreadDefaultConnectionFlags(boolean readOnly)
From source file:io.requery.android.database.sqlite.SQLiteQueryBuilder.java
/** * Verifies that a SQL SELECT statement is valid by compiling it. * If the SQL statement is not valid, this method will throw a {@link SQLiteException}. *///from w w w. j a va2s. com private void validateQuerySql(SQLiteDatabase db, String sql, CancellationSignal cancellationSignal) { db.getThreadSession().prepare(sql, db.getThreadDefaultConnectionFlags(true /*readOnly*/), cancellationSignal, null); }