validateSql method

Future<void> validateSql (String sql)

Verifies that a SQL SELECT statement is valid by compiling it.

If the SQL statement is not valid, this method will throw a SQLiteException.

See: https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase#validateSql(java.lang.String,%20android.os.CancellationSignal)

Implementation

Future<void> validateSql(final String sql) {
  final Map<String, dynamic> request = <String, dynamic>{
    'id': id,
    'sql': sql
  };
  return _channel.invokeMethod('validateSql', request);
}