postgres_crdt library

Classes

Crdt
CrdtApi
Interface to normalize CRDT query and execute methods
CrdtExecutor
CrdtTableExecutor
Intercepts CREATE TABLE queries to assist with table creation and updates. Does not impact any other query types.
CrdtWriteExecutor
DatabaseApi
Interface representing a "standard" database backend capable of read, write and transaction operations.
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.
PostgresCrdt
ReadApi
Interface implementing read operations on the underlying database.
ReadWriteApi
Interface implementing read and write operations on the underlying database.
SqlCrdt
WriteApi
Interface implementing write operations on the underlying database.

Enums

SslMode

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.