execSQL method

Future<void> execSQL (String sql, [ List args = const [] ])

Executes a single SQL statement that is not a SELECT or any other SQL statement that returns data.

It has no means to return any data (such as the number of affected rows).

See: https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase#execSQL(java.lang.String)

Implementation

Future<void> execSQL(final String sql,
    [final List<dynamic> args = const []]) {
  final Map<String, dynamic> request = <String, dynamic>{
    'id': id,
    'sql': sql,
    'args': args
  };
  return _channel.invokeMethod('execSQL', request);
}