Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions packages/powersync/test/bucket_storage_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,34 @@ void main() {
await expectNoAssets();
});

test('put | put remove', () async {
await bucketStorage.saveSyncData(SyncDataBatch([
SyncBucketData(bucket: 'bucket1', data: [putAsset1_1]),
]));

await syncLocalChecked(Checkpoint(lastOpId: '1', checksums: [
BucketChecksum(bucket: 'bucket1', checksum: 1),
]));

expect(
await powersync.execute(
"SELECT id, description, make FROM assets WHERE id = 'O1'"),
equals([
{'id': 'O1', 'description': 'bar', 'make': null}
]));

await bucketStorage.saveSyncData(SyncDataBatch([
SyncBucketData(bucket: 'bucket1', data: [putAsset1_3]),
SyncBucketData(bucket: 'bucket1', data: [removeAsset1_5])
]));

await syncLocalChecked(Checkpoint(lastOpId: '5', checksums: [
BucketChecksum(bucket: 'bucket1', checksum: 9),
]));

await expectNoAssets();
});

test('should use subkeys', () async {
// subkeys cause this to be treated as a separate entity in the oplog,
// but same entity in the local db.
Expand Down
2 changes: 1 addition & 1 deletion packages/powersync_flutter_libs/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ android {
}

dependencies {
implementation 'co.powersync:powersync-sqlite-core:0.3.4'
implementation 'co.powersync:powersync-sqlite-core:0.3.6'
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A new Flutter FFI plugin project.
s.dependency 'Flutter'
s.platform = :ios, '11.0'

s.dependency "powersync-sqlite-core", "~> 0.3.4"
s.dependency "powersync-sqlite-core", "~> 0.3.6"

# Flutter.framework does not contain a i386 slice.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ A new Flutter FFI plugin project.
s.source_files = 'Classes/**/*'
s.dependency 'FlutterMacOS'

s.dependency "powersync-sqlite-core", "~> 0.3.4"
s.dependency "powersync-sqlite-core", "~> 0.3.6"

s.platform = :osx, '10.11'
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
Expand Down
2 changes: 1 addition & 1 deletion scripts/download_core_binary_demos.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import 'dart:io';

final coreUrl =
'https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v0.3.4';
'https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v0.3.6';

void main() async {
final powersyncLibsLinuxPath = "packages/powersync_flutter_libs/linux";
Expand Down
2 changes: 1 addition & 1 deletion scripts/init_powersync_core_binary.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'dart:io';
import 'package:melos/melos.dart';

final sqliteUrl =
'https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v0.3.4';
'https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v0.3.6';

void main() async {
final sqliteCoreFilename = getLibraryForPlatform();
Expand Down
Loading