DriftCrdtUtils class

Constructors

DriftCrdtUtils.new()

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

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

Static Methods

isSpecialQuery(ParseResult result) bool
prepareCreateTableQuery(String query) String
We need to delete CRDT columns from a CreateTable statement because the sqlite_crdt library is going to insert them again. But we need to have them in our definitions to make other logic work correctly
prepareSelectStatement(SelectStatement statement, bool queryDeleted) → void
Prepare the Select statement to be in line with the CRDT requirements if queryDeleted is set to false then we query only regular records if it is set to true we query all the records in database. This is useful in migrations, or auditing