Compartilhar via


SQLiteDatabase.SyncModeOff Field

Definition

In OFF sync mode SQLite continues without syncing as soon as it has handed data off to the operating system.

[Android.Runtime.Register("SYNC_MODE_OFF", ApiSince=33)]
public const string SyncModeOff;
[<Android.Runtime.Register("SYNC_MODE_OFF", ApiSince=33)>]
val mutable SyncModeOff : string

Field Value

Attributes

Remarks

In OFF sync mode SQLite continues without syncing as soon as it has handed data off to the operating system. If the application running SQLite crashes, the data will be safe, but the database might become corrupted if the operating system crashes or the computer loses power before that data has been written to the disk surface. On the other hand, commits can be orders of magnitude faster with synchronous OFF.

See here for more details.

Java documentation for android.database.sqlite.SQLiteDatabase.SYNC_MODE_OFF.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to