Partager via


SQLiteDatabase.JournalModeTruncate Field

Definition

The TRUNCATE journaling mode commits transactions by truncating the rollback journal to zero-length instead of deleting it.

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

Field Value

Attributes

Remarks

The TRUNCATE journaling mode commits transactions by truncating the rollback journal to zero-length instead of deleting it. On many systems, truncating a file is much faster than deleting the file since the containing directory does not need to be changed.

See here for more details.

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

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