KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
hive_crdt
★ 25
Open GitHub ↗
A CRDT backed by a Hive store
Download README (.md)
Explore Similar Repositories
WikiSearch
:
A flutter search engine based on MediaWiki with caching.
flutter-getx-hive
:
Simple Flutter todo app with Hive DB, and Getx (MVC) pattern
WhatsApp-Clone
:
An WhatsApp clone project with Flutter framework for mobile application and NodeJs Express Js for backend.
studentManagementUsingProvider
:
Studentmanagement app using Provider and HiveDB
Cypher-Habits
:
Made this for myself to minimize my laziness. Inspiration taken from GitHub Contribution graph.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
hive_crdt
?
Download (.md)
Conflict-free Replicated Data Types (CRDTs) using by [Hive](https://pub.dev/packages/hive) stores for data persistence. This package implements [crdt](https://github.com/cachapa/crdt) and is compatible with [crdt_sync](https://github.com/cachapa/crdt_sync). ## Usage ```dart import 'package:hive/hive.dart'; import 'package:hive_crdt/src/hive_adapters.dart'; import 'package:hive_crdt/src/hive_crdt.dart'; Future<void> main() async { // Initialize Hive Hive ..init('test_store') ..registerAdapter(RecordAdapter(42)); var crdt1 = await HiveCrdt.open(prefix: 'crdt1', ['table']); var crdt2 = await HiveCrdt.open(prefix: 'crdt2', ['table']); print('Inserting 2 records in crdt1…'); await crdt1.put('table', 'a', 1); await crdt1.put('table', 'b', 1); print('crdt1: ${crdt1.getMap('table')}'); print('\nInserting a conflicting record in crdt2…'); await crdt2.put('table', 'a', 2); print('crdt2: ${crdt2.getMap('table')}'); print('\nMerging crdt2 into crdt1…'); await crdt1.merge(crdt2.getChangeset()); print('crdt1: ${crdt1.getMap('table')}'); } ``` ## Features and bugs Please file feature requests and bugs at the [issue tracker](https://github.com/cachapa/hive_crdt/issues).