BulkManager class

Manager for bulk database inserts and deletes.

In tests it looked 33% faster to use delete/insert rather than upsert And of course it's much faster to perform bulk actions rather than numerous single actions cf. BulkInsertable, BulkDeletable

Constructors

BulkManager()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete({required BulkDeletable bulkDeletable, required List parameters, required DatabaseExecutor databaseExecutor, List? additionalParameters}) → Future<int>
Returns the number of deleted rows by optimized bulk delete
insert({required BulkInsertable bulkInsertable, required List parameters, required DatabaseExecutor databaseExecutor}) → Future<int>
Returns the number of inserted rows by optimized bulk insert
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

SQLITE_MAX_VARIABLE_NUMBER → const int
Max number of parameters in a SQFlite query