IBriteBatch class abstract

A batch is used to perform multiple operation as a single atomic unit. A Batch object can be acquired by calling Database.batch. It provides methods for adding operation. None of the operation will be executed (or visible locally) until commit() is called.

Implemented types

Constructors

IBriteBatch()

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
Current batch size
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply({bool? noResult, bool? continueOnError}) Future<List<Object?>>
Runs all statements in this batch non-atomically.
inherited
commit({bool? exclusive, bool? noResult, bool? continueOnError}) Future<List<Object?>>
Commits all of the operations in this batch as a single atomic unit The result is a list of the result of each operation in the same order if noResult is true, the result list is empty (i.e. the id inserted the count of item changed is not returned.
inherited
delete(String table, {String? where, List<Object?>? whereArgs}) → void
See Database.delete
inherited
execute(String sql, [List<Object?>? arguments]) → void
See Database.execute;
inherited
executeAndTrigger(Iterable<String> tables, String sql, [List<Object?>? arguments]) → void
See execute
insert(String table, Map<String, Object?> values, {String? nullColumnHack, ConflictAlgorithm? conflictAlgorithm}) → void
See Database.insert
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query(String table, {bool? distinct, List<String>? columns, String? where, List<Object?>? whereArgs, String? groupBy, String? having, String? orderBy, int? limit, int? offset}) → void
See Database.query;
inherited
rawDelete(String sql, [List<Object?>? arguments]) → void
See Database.rawDelete
inherited
rawDeleteAndTrigger(Iterable<String> tables, String sql, [List<Object?>? arguments]) → void
See rawDelete
rawInsert(String sql, [List<Object?>? arguments]) → void
See Database.rawInsert
inherited
rawInsertAndTrigger(Iterable<String> tables, String sql, [List<Object?>? arguments]) → void
See rawInsert
rawQuery(String sql, [List<Object?>? arguments]) → void
See Database.query;
inherited
rawUpdate(String sql, [List<Object?>? arguments]) → void
See Database.rawUpdate
inherited
rawUpdateAndTrigger(Iterable<String> tables, String sql, [List<Object?>? arguments]) → void
See rawUpdate
toString() String
A string representation of this object.
inherited
update(String table, Map<String, Object?> values, {String? where, List<Object?>? whereArgs, ConflictAlgorithm? conflictAlgorithm}) → void
See Database.update
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited