From 13d64a955a5818e449b8cc8ad1ea833add3487e1 Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Tue, 7 Nov 2023 14:40:52 +0100 Subject: [PATCH] Mention CRDT projects on community page --- docs/pages/docs/community_tools.md | 10 ++++++++++ drift/lib/src/runtime/types/mapping.dart | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/pages/docs/community_tools.md b/docs/pages/docs/community_tools.md index 3f540158..53dbf7da 100644 --- a/docs/pages/docs/community_tools.md +++ b/docs/pages/docs/community_tools.md @@ -11,6 +11,16 @@ Do you have a drift-related package you want to share? Awesome, please let me kn [Twitter](https://twitter.com/dersimolus) or via email to oss <at>simonbinder<dot>eu. {% endblock %} +## Conflict-free replicated datatypes + +Conflict-free replicated datatypes (CRDTs) enable synchronization and replication of data +even when offline. +The [sql\_crdt](https://pub.dev/packages/sql_crdt) package by Daniel Cachapa uses the +`sqlparser` package from the drift project transforms SQL queries at runtime to implement +CRDTs for databases. +The [drift\_crdt](https://pub.dev/packages/drift_crdt) package by Janez Štupar provides a +wrapper around this for drift. + ## Storage inspector [Nicola Verbeeck](https://github.com/NicolaVerbeeck) wrote the `storage_inspector` packages, which diff --git a/drift/lib/src/runtime/types/mapping.dart b/drift/lib/src/runtime/types/mapping.dart index f3c77a0b..7fc5c152 100644 --- a/drift/lib/src/runtime/types/mapping.dart +++ b/drift/lib/src/runtime/types/mapping.dart @@ -155,7 +155,7 @@ final class SqlTypes { // thing. result = DateTime.parse(rawValue); } else { - // Result from complex date tmie transformation. Interpret as UTC, + // Result from complex date time transformation. Interpret as UTC, // which is what sqlite3 does by default. result = DateTime.parse('${rawValue}Z'); }