isDatabaseIntegrityOk property

Future<bool> isDatabaseIntegrityOk

Runs PRAGMA integrity_check on the given database (and all the attached databases).

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

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

Note that PRAGMA integrity_check on a database can take a long time.

See: https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase#isDatabaseIntegrityOk()

Implementation

Future<bool> get isDatabaseIntegrityOk async {
  final Map<String, dynamic> request = <String, dynamic>{'id': id};
  return await _channel.invokeMethod('isDatabaseIntegrityOk', request);
}