refactor: Move the core implementation to the shared package with no manual queries (#107)
This commit is contained in:
parent
92a8e22d04
commit
9f2ce4d9e6
1 changed files with 1992 additions and 14018 deletions
56
packages/serverpod_offline_sync/lib/src/generated/merge/change.dart
generated
Normal file
56
packages/serverpod_offline_sync/lib/src/generated/merge/change.dart
generated
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
/* AUTOMATICALLY GENERATED CODE DO NOT MODIFY */
|
||||
/* To generate run: "serverpod generate" */
|
||||
|
||||
// ignore_for_file: implementation_imports
|
||||
// ignore_for_file: library_private_types_in_public_api
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
// ignore_for_file: public_member_api_docs
|
||||
// ignore_for_file: type_literal_in_constant_pattern
|
||||
// ignore_for_file: use_super_parameters
|
||||
// ignore_for_file: invalid_use_of_internal_member
|
||||
|
||||
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
||||
import 'package:serverpod_offline_sync/serverpod_offline_sync.dart' as _i1;
|
||||
import 'package:serverpod_serialization/serverpod_serialization.dart' as _i2;
|
||||
part 'delete.dart';
|
||||
part 'insert.dart';
|
||||
part 'update.dart';
|
||||
|
||||
/// A remote CRDT change to merge.
|
||||
sealed class CrdtMergeChange extends _i1.BaseHlc
|
||||
implements _i2.SerializableModel, _i2.ProtocolSerialization {
|
||||
CrdtMergeChange({
|
||||
required super.hlcDatetime,
|
||||
required super.hlcCounter,
|
||||
required this.uuidScopeId,
|
||||
required this.tableName,
|
||||
required this.uuidRowId,
|
||||
required this.uuidNodeId,
|
||||
});
|
||||
|
||||
/// The scope this change belongs to.
|
||||
_i2.UuidValue uuidScopeId;
|
||||
|
||||
/// The table receiving the change.
|
||||
String tableName;
|
||||
|
||||
/// The domain row identifier receiving the change.
|
||||
_i2.UuidValue uuidRowId;
|
||||
|
||||
/// The remote node that produced the change.
|
||||
_i2.UuidValue uuidNodeId;
|
||||
|
||||
/// Returns a shallow copy of this [CrdtMergeChange]
|
||||
/// with some or all fields replaced by the given arguments.
|
||||
@_i2.useResult
|
||||
CrdtMergeChange copyWith({
|
||||
DateTime? hlcDatetime,
|
||||
int? hlcCounter,
|
||||
_i2.UuidValue? uuidScopeId,
|
||||
String? tableName,
|
||||
_i2.UuidValue? uuidRowId,
|
||||
_i2.UuidValue? uuidNodeId,
|
||||
});
|
||||
}
|
||||
|
||||
class _Undefined {}
|
||||
Loading…
Reference in a new issue