documentation about not using journal_mode if using WAL
apps should not setting journal_mode if the application is using a connection pool for readers by calling the method SQLiteDatabase.enableWriteAheadLogging() Change-Id: I9ddb32638171c6277ca94381a1b5d4b39b92b386
This commit is contained in:
@ -1837,6 +1837,12 @@ public class SQLiteDatabase extends SQLiteClosable {
|
||||
* Instead, you're encouraged to use {@link #insert(String, String, ContentValues)},
|
||||
* {@link #update(String, ContentValues, String, String[])}, et al, when possible.
|
||||
* </p>
|
||||
* <p>
|
||||
* When using {@link #enableWriteAheadLogging()}, journal_mode is
|
||||
* automatically managed by this class. So, do not set journal_mode
|
||||
* using "PRAGMA journal_mode'<value>" statement if your app is using
|
||||
* {@link #enableWriteAheadLogging()}
|
||||
* </p>
|
||||
*
|
||||
* @param sql the SQL statement to be executed. Multiple statements separated by semicolons are
|
||||
* not supported.
|
||||
@ -1904,6 +1910,12 @@ public class SQLiteDatabase extends SQLiteClosable {
|
||||
* <li>PRAGMA that returns no data</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* <p>
|
||||
* When using {@link #enableWriteAheadLogging()}, journal_mode is
|
||||
* automatically managed by this class. So, do not set journal_mode
|
||||
* using "PRAGMA journal_mode'<value>" statement if your app is using
|
||||
* {@link #enableWriteAheadLogging()}
|
||||
* </p>
|
||||
*
|
||||
* @param sql the SQL statement to be executed. Multiple statements separated by semicolons are
|
||||
* not supported.
|
||||
|
Reference in New Issue
Block a user