AGConnectCloudDBTransaction class

Transaction class describes a transaction. The transaction provides executeUpsert(), and executeDelete() methods to add, delete, and modify, data in the Cloud DB zone on the cloud.

  • A transaction is performed only when the network is connected.
  • Multiple data operations can be performed in a transaction.
  • The written and deleted object records contained in a transaction must be less than or equal to 1000. The data size of multiple write and delete operations in a transaction must be less than or equal to 2 MB.

Constructors

AGConnectCloudDBTransaction()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
transactionElements List<Map<String, dynamic>>
read-only

Methods

executeDelete({String objectTypeName, List<Map<String, dynamic>> entries}) → void
This method is called to delete a group of objects from a Cloud DB zone on the cloud in a transaction in batches. A transaction is atomic. All operations in a transaction will either be successful or fail. The delete operation focuses only on whether the primary key of the object is consistent, regardless of whether other attributes of the object match the stored data. [...]
executeUpsert({String objectTypeName, List<Map<String, dynamic>> entries}) → void
This method is used to write a group of objects in a transaction to the Cloud DB zone on the cloud in batches. A transaction is atomic. All operations in a transaction will either be successful or fail. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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