SQLiteDatabase.IsDatabaseIntegrityOk Property

Definition

Runs 'pragma integrity_check' on the given database (and all the attached databases) and returns true if the given database (and all its attached databases) pass integrity_check, false otherwise.

public virtual bool IsDatabaseIntegrityOk { [Android.Runtime.Register("isDatabaseIntegrityOk", "()Z", "GetIsDatabaseIntegrityOkHandler")] get; }
[<get: Android.Runtime.Register("isDatabaseIntegrityOk", "()Z", "GetIsDatabaseIntegrityOkHandler")>]
member this.IsDatabaseIntegrityOk : bool

Property Value

true if the given database (and all its attached databases) pass integrity_check, false otherwise.

Attributes

Remarks

Runs 'pragma integrity_check' on the given database (and all the attached databases) and returns true if the given database (and all its attached databases) pass integrity_check, false otherwise.

If the result is false, then this method logs the errors reported by the integrity_check command execution.

Note that 'pragma integrity_check' on a database can take a long time.

Java documentation for android.database.sqlite.SQLiteDatabase.isDatabaseIntegrityOk().

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