sql_crdt library

Classes

BaseCrdt
Intercepts CREATE TABLE queries to assist with table creation and updates
Crdt
DatabaseApi
Hlc
A Hybrid Logical Clock implementation. This class trades time precision for a guaranteed monotonically increasing clock in distributed systems. Inspiration: https://cse.buffalo.edu/tech-reports/2014-04.pdf
MergeError<T>
Thrown on merge errors. Contains the failed payload to help with debugging large datasets.
SqlCrdt
TimestampedCrdt
TransactionCrdt

Functions

generateNodeId() String
parseCrdtChangeset(Map<String, dynamic> message) CrdtChangeset
Utility function to simplify parsing untyped changesets. It performs all necessary casts to satisfy Dart's type system, and parses Hlc timestamps. Useful when receiving datasets over the wire.