From a94199a5a5ba91a206acb6ce53d18f0891a3d7b9 Mon Sep 17 00:00:00 2001 From: David Martos Date: Wed, 9 Oct 2024 17:37:18 +0200 Subject: [PATCH 1/3] bump sqlite_async version to 0.9.0 --- demos/django-todolist/pubspec.lock | 42 +- demos/django-todolist/pubspec.yaml | 2 +- demos/supabase-anonymous-auth/pubspec.lock | 62 +-- demos/supabase-anonymous-auth/pubspec.yaml | 2 +- .../supabase-edge-function-auth/pubspec.lock | 42 +- .../supabase-edge-function-auth/pubspec.yaml | 2 +- demos/supabase-simple-chat/pubspec.lock | 42 +- .../lib/database.g.dart | 418 ++++++++++++------ demos/supabase-todolist-drift/pubspec.lock | 76 ++-- demos/supabase-todolist-drift/pubspec.yaml | 8 +- .../pubspec.lock | 66 +-- .../pubspec.yaml | 2 +- demos/supabase-todolist/pubspec.lock | 44 +- demos/supabase-todolist/pubspec.yaml | 2 +- packages/powersync/pubspec.yaml | 2 +- .../powersync_attachments_helper/pubspec.yaml | 2 +- 16 files changed, 473 insertions(+), 341 deletions(-) diff --git a/demos/django-todolist/pubspec.lock b/demos/django-todolist/pubspec.lock index 17e5c860..4b277c1f 100644 --- a/demos/django-todolist/pubspec.lock +++ b/demos/django-todolist/pubspec.lock @@ -164,18 +164,18 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" url: "https://pub.dev" source: hosted - version: "10.0.4" + version: "10.0.5" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.5" leak_tracker_testing: dependency: transitive description: @@ -212,18 +212,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.15.0" mutex: dependency: transitive description: @@ -310,7 +310,7 @@ packages: path: "../../packages/powersync" relative: true source: path - version: "1.8.2" + version: "1.8.4" powersync_flutter_libs: dependency: "direct overridden" description: @@ -415,10 +415,10 @@ packages: dependency: transitive description: name: sqlite3 - sha256: fde692580bee3379374af1f624eb3e113ab2865ecb161dbe2d8ac2de9735dbdb + sha256: "45f168ae2213201b54e09429ed0c593dc2c88c924a1488d6f9c523a255d567cb" url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "2.4.6" sqlite3_flutter_libs: dependency: transitive description: @@ -431,18 +431,18 @@ packages: dependency: transitive description: name: sqlite3_web - sha256: "51fec34757577841cc72d79086067e3651c434669d5af557a5c106787198a76f" + sha256: b4043336e74cac54d3ca44c90434a3c310550b9a80851b09ad1af282af0df6d4 url: "https://pub.dev" source: hosted - version: "0.1.2-wip" + version: "0.1.3" sqlite_async: dependency: "direct main" description: name: sqlite_async - sha256: "7708a2129582d43614f436e28623fcbeb142a02022ba372e45cfe403c84dd2b5" + sha256: c5c57b025133d0869cce6a647f99b378ab42cc26488ff22ff942ae9588201af0 url: "https://pub.dev" source: hosted - version: "0.8.3" + version: "0.9.0" stack_trace: dependency: transitive description: @@ -479,10 +479,10 @@ packages: dependency: transitive description: name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "0.7.2" typed_data: dependency: transitive description: @@ -519,18 +519,18 @@ packages: dependency: transitive description: name: vm_service - sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" url: "https://pub.dev" source: hosted - version: "14.2.1" + version: "14.2.5" web: dependency: transitive description: name: web - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "1.1.0" xdg_directories: dependency: transitive description: diff --git a/demos/django-todolist/pubspec.yaml b/demos/django-todolist/pubspec.yaml index 8d817077..975964e7 100644 --- a/demos/django-todolist/pubspec.yaml +++ b/demos/django-todolist/pubspec.yaml @@ -14,7 +14,7 @@ dependencies: path_provider: ^2.1.1 path: ^1.8.3 logging: ^1.2.0 - sqlite_async: ^0.8.3 + sqlite_async: ^0.9.0 http: ^1.2.1 shared_preferences: ^2.2.3 diff --git a/demos/supabase-anonymous-auth/pubspec.lock b/demos/supabase-anonymous-auth/pubspec.lock index 16bfb8f8..9adb2771 100644 --- a/demos/supabase-anonymous-auth/pubspec.lock +++ b/demos/supabase-anonymous-auth/pubspec.lock @@ -5,10 +5,10 @@ packages: dependency: transitive description: name: app_links - sha256: "42dc15aecf2618ace4ffb74a2e58a50e45cd1b9f2c17c8f0cafe4c297f08c815" + sha256: "3ced568a5d9e309e99af71285666f1f3117bddd0bd5b3317979dccc1a40cada4" url: "https://pub.dev" source: hosted - version: "4.0.1" + version: "3.5.1" args: dependency: transitive description: @@ -172,10 +172,10 @@ packages: dependency: transitive description: name: http - sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" + sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010 url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.2.2" http_parser: dependency: transitive description: @@ -204,18 +204,18 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" url: "https://pub.dev" source: hosted - version: "10.0.4" + version: "10.0.5" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.5" leak_tracker_testing: dependency: transitive description: @@ -252,18 +252,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.15.0" mime: dependency: transitive description: @@ -366,7 +366,7 @@ packages: path: "../../packages/powersync" relative: true source: path - version: "1.8.2" + version: "1.8.4" powersync_flutter_libs: dependency: "direct overridden" description: @@ -458,10 +458,10 @@ packages: dependency: transitive description: name: shared_preferences_web - sha256: "9aee1089b36bd2aafe06582b7d7817fd317ef05fc30e6ba14bff247d0933042a" + sha256: d762709c2bbe80626ecc819143013cc820fa49ca5e363620ee20a8b15a3e3daf url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.2.1" shared_preferences_windows: dependency: transitive description: @@ -495,10 +495,10 @@ packages: dependency: transitive description: name: sqlite3 - sha256: fde692580bee3379374af1f624eb3e113ab2865ecb161dbe2d8ac2de9735dbdb + sha256: "45f168ae2213201b54e09429ed0c593dc2c88c924a1488d6f9c523a255d567cb" url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "2.4.6" sqlite3_flutter_libs: dependency: transitive description: @@ -511,18 +511,18 @@ packages: dependency: transitive description: name: sqlite3_web - sha256: "51fec34757577841cc72d79086067e3651c434669d5af557a5c106787198a76f" + sha256: b4043336e74cac54d3ca44c90434a3c310550b9a80851b09ad1af282af0df6d4 url: "https://pub.dev" source: hosted - version: "0.1.2-wip" + version: "0.1.3" sqlite_async: dependency: "direct main" description: name: sqlite_async - sha256: "7708a2129582d43614f436e28623fcbeb142a02022ba372e45cfe403c84dd2b5" + sha256: c5c57b025133d0869cce6a647f99b378ab42cc26488ff22ff942ae9588201af0 url: "https://pub.dev" source: hosted - version: "0.8.3" + version: "0.9.0" stack_trace: dependency: transitive description: @@ -583,10 +583,10 @@ packages: dependency: transitive description: name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "0.7.2" typed_data: dependency: transitive description: @@ -655,10 +655,10 @@ packages: dependency: transitive description: name: url_launcher_web - sha256: "3692a459204a33e04bc94f5fb91158faf4f2c8903281ddd82915adecdb1a901d" + sha256: "772638d3b34c779ede05ba3d38af34657a05ac55b06279ea6edd409e323dca8e" url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.3.3" url_launcher_windows: dependency: transitive description: @@ -687,26 +687,26 @@ packages: dependency: transitive description: name: vm_service - sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" url: "https://pub.dev" source: hosted - version: "14.2.1" + version: "14.2.5" web: dependency: transitive description: name: web - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "1.1.0" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42" + sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "2.4.0" win32: dependency: transitive description: diff --git a/demos/supabase-anonymous-auth/pubspec.yaml b/demos/supabase-anonymous-auth/pubspec.yaml index 15238476..39ca4487 100644 --- a/demos/supabase-anonymous-auth/pubspec.yaml +++ b/demos/supabase-anonymous-auth/pubspec.yaml @@ -16,7 +16,7 @@ dependencies: supabase_flutter: ^2.0.2 path: ^1.8.3 logging: ^1.2.0 - sqlite_async: ^0.8.3 + sqlite_async: ^0.9.0 universal_io: ^2.2.2 dev_dependencies: diff --git a/demos/supabase-edge-function-auth/pubspec.lock b/demos/supabase-edge-function-auth/pubspec.lock index 2f3efcbe..e153cf21 100644 --- a/demos/supabase-edge-function-auth/pubspec.lock +++ b/demos/supabase-edge-function-auth/pubspec.lock @@ -228,18 +228,18 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" url: "https://pub.dev" source: hosted - version: "10.0.4" + version: "10.0.5" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.5" leak_tracker_testing: dependency: transitive description: @@ -276,18 +276,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.15.0" mime: dependency: transitive description: @@ -390,7 +390,7 @@ packages: path: "../../packages/powersync" relative: true source: path - version: "1.8.2" + version: "1.8.4" powersync_flutter_libs: dependency: "direct overridden" description: @@ -519,10 +519,10 @@ packages: dependency: transitive description: name: sqlite3 - sha256: fde692580bee3379374af1f624eb3e113ab2865ecb161dbe2d8ac2de9735dbdb + sha256: "45f168ae2213201b54e09429ed0c593dc2c88c924a1488d6f9c523a255d567cb" url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "2.4.6" sqlite3_flutter_libs: dependency: transitive description: @@ -535,18 +535,18 @@ packages: dependency: transitive description: name: sqlite3_web - sha256: "51fec34757577841cc72d79086067e3651c434669d5af557a5c106787198a76f" + sha256: b4043336e74cac54d3ca44c90434a3c310550b9a80851b09ad1af282af0df6d4 url: "https://pub.dev" source: hosted - version: "0.1.2-wip" + version: "0.1.3" sqlite_async: dependency: "direct main" description: name: sqlite_async - sha256: "7708a2129582d43614f436e28623fcbeb142a02022ba372e45cfe403c84dd2b5" + sha256: c5c57b025133d0869cce6a647f99b378ab42cc26488ff22ff942ae9588201af0 url: "https://pub.dev" source: hosted - version: "0.8.3" + version: "0.9.0" stack_trace: dependency: transitive description: @@ -607,10 +607,10 @@ packages: dependency: transitive description: name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "0.7.2" typed_data: dependency: transitive description: @@ -711,18 +711,18 @@ packages: dependency: transitive description: name: vm_service - sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" url: "https://pub.dev" source: hosted - version: "14.2.1" + version: "14.2.5" web: dependency: transitive description: name: web - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "1.1.0" web_socket: dependency: transitive description: diff --git a/demos/supabase-edge-function-auth/pubspec.yaml b/demos/supabase-edge-function-auth/pubspec.yaml index 4d45db22..cd369b0f 100644 --- a/demos/supabase-edge-function-auth/pubspec.yaml +++ b/demos/supabase-edge-function-auth/pubspec.yaml @@ -16,7 +16,7 @@ dependencies: supabase_flutter: ^2.0.2 path: ^1.8.3 logging: ^1.2.0 - sqlite_async: ^0.8.3 + sqlite_async: ^0.9.0 universal_io: ^2.2.2 dev_dependencies: diff --git a/demos/supabase-simple-chat/pubspec.lock b/demos/supabase-simple-chat/pubspec.lock index bc3ade92..1bdedf61 100644 --- a/demos/supabase-simple-chat/pubspec.lock +++ b/demos/supabase-simple-chat/pubspec.lock @@ -244,18 +244,18 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" url: "https://pub.dev" source: hosted - version: "10.0.4" + version: "10.0.5" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.5" leak_tracker_testing: dependency: transitive description: @@ -292,18 +292,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.15.0" mime: dependency: transitive description: @@ -406,7 +406,7 @@ packages: path: "../../packages/powersync" relative: true source: path - version: "1.8.2" + version: "1.8.4" powersync_flutter_libs: dependency: "direct overridden" description: @@ -535,10 +535,10 @@ packages: dependency: transitive description: name: sqlite3 - sha256: fde692580bee3379374af1f624eb3e113ab2865ecb161dbe2d8ac2de9735dbdb + sha256: "45f168ae2213201b54e09429ed0c593dc2c88c924a1488d6f9c523a255d567cb" url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "2.4.6" sqlite3_flutter_libs: dependency: transitive description: @@ -551,18 +551,18 @@ packages: dependency: transitive description: name: sqlite3_web - sha256: "51fec34757577841cc72d79086067e3651c434669d5af557a5c106787198a76f" + sha256: b4043336e74cac54d3ca44c90434a3c310550b9a80851b09ad1af282af0df6d4 url: "https://pub.dev" source: hosted - version: "0.1.2-wip" + version: "0.1.3" sqlite_async: dependency: transitive description: name: sqlite_async - sha256: "7708a2129582d43614f436e28623fcbeb142a02022ba372e45cfe403c84dd2b5" + sha256: c5c57b025133d0869cce6a647f99b378ab42cc26488ff22ff942ae9588201af0 url: "https://pub.dev" source: hosted - version: "0.8.3" + version: "0.9.0" stack_trace: dependency: transitive description: @@ -623,10 +623,10 @@ packages: dependency: transitive description: name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "0.7.2" timeago: dependency: "direct main" description: @@ -735,18 +735,18 @@ packages: dependency: transitive description: name: vm_service - sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" url: "https://pub.dev" source: hosted - version: "14.2.1" + version: "14.2.5" web: dependency: transitive description: name: web - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "1.1.0" web_socket: dependency: transitive description: diff --git a/demos/supabase-todolist-drift/lib/database.g.dart b/demos/supabase-todolist-drift/lib/database.g.dart index c8c74680..438ea554 100644 --- a/demos/supabase-todolist-drift/lib/database.g.dart +++ b/demos/supabase-todolist-drift/lib/database.g.dart @@ -155,6 +155,15 @@ class ListItem extends DataClass implements Insertable { name: name ?? this.name, ownerId: ownerId.present ? ownerId.value : this.ownerId, ); + ListItem copyWithCompanion(ListItemsCompanion data) { + return ListItem( + id: data.id.present ? data.id.value : this.id, + createdAt: data.createdAt.present ? data.createdAt.value : this.createdAt, + name: data.name.present ? data.name.value : this.name, + ownerId: data.ownerId.present ? data.ownerId.value : this.ownerId, + ); + } + @override String toString() { return (StringBuffer('ListItem(') @@ -557,6 +566,23 @@ class TodoItem extends DataClass implements Insertable { createdBy: createdBy.present ? createdBy.value : this.createdBy, completedBy: completedBy.present ? completedBy.value : this.completedBy, ); + TodoItem copyWithCompanion(TodoItemsCompanion data) { + return TodoItem( + id: data.id.present ? data.id.value : this.id, + listId: data.listId.present ? data.listId.value : this.listId, + photoId: data.photoId.present ? data.photoId.value : this.photoId, + createdAt: data.createdAt.present ? data.createdAt.value : this.createdAt, + completedAt: + data.completedAt.present ? data.completedAt.value : this.completedAt, + completed: data.completed.present ? data.completed.value : this.completed, + description: + data.description.present ? data.description.value : this.description, + createdBy: data.createdBy.present ? data.createdBy.value : this.createdBy, + completedBy: + data.completedBy.present ? data.completedBy.value : this.completedBy, + ); + } + @override String toString() { return (StringBuffer('TodoItem(') @@ -734,7 +760,7 @@ class TodoItemsCompanion extends UpdateCompanion { abstract class _$AppDatabase extends GeneratedDatabase { _$AppDatabase(QueryExecutor e) : super(e); - _$AppDatabaseManager get managers => _$AppDatabaseManager(this); + $AppDatabaseManager get managers => $AppDatabaseManager(this); late final $ListItemsTable listItems = $ListItemsTable(this); late final $TodoItemsTable todoItems = $TodoItemsTable(this); Selectable listsWithStats() { @@ -761,7 +787,7 @@ abstract class _$AppDatabase extends GeneratedDatabase { const DriftDatabaseOptions(storeDateTimeAsText: true); } -typedef $$ListItemsTableInsertCompanionBuilder = ListItemsCompanion Function({ +typedef $$ListItemsTableCreateCompanionBuilder = ListItemsCompanion Function({ Value id, Value createdAt, required String name, @@ -776,66 +802,24 @@ typedef $$ListItemsTableUpdateCompanionBuilder = ListItemsCompanion Function({ Value rowid, }); -class $$ListItemsTableTableManager extends RootTableManager< - _$AppDatabase, - $ListItemsTable, - ListItem, - $$ListItemsTableFilterComposer, - $$ListItemsTableOrderingComposer, - $$ListItemsTableProcessedTableManager, - $$ListItemsTableInsertCompanionBuilder, - $$ListItemsTableUpdateCompanionBuilder> { - $$ListItemsTableTableManager(_$AppDatabase db, $ListItemsTable table) - : super(TableManagerState( - db: db, - table: table, - filteringComposer: - $$ListItemsTableFilterComposer(ComposerState(db, table)), - orderingComposer: - $$ListItemsTableOrderingComposer(ComposerState(db, table)), - getChildManagerBuilder: (p) => - $$ListItemsTableProcessedTableManager(p), - getUpdateCompanionBuilder: ({ - Value id = const Value.absent(), - Value createdAt = const Value.absent(), - Value name = const Value.absent(), - Value ownerId = const Value.absent(), - Value rowid = const Value.absent(), - }) => - ListItemsCompanion( - id: id, - createdAt: createdAt, - name: name, - ownerId: ownerId, - rowid: rowid, - ), - getInsertCompanionBuilder: ({ - Value id = const Value.absent(), - Value createdAt = const Value.absent(), - required String name, - Value ownerId = const Value.absent(), - Value rowid = const Value.absent(), - }) => - ListItemsCompanion.insert( - id: id, - createdAt: createdAt, - name: name, - ownerId: ownerId, - rowid: rowid, - ), - )); -} +final class $$ListItemsTableReferences + extends BaseReferences<_$AppDatabase, $ListItemsTable, ListItem> { + $$ListItemsTableReferences(super.$_db, super.$_table, super.$_typedResult); -class $$ListItemsTableProcessedTableManager extends ProcessedTableManager< - _$AppDatabase, - $ListItemsTable, - ListItem, - $$ListItemsTableFilterComposer, - $$ListItemsTableOrderingComposer, - $$ListItemsTableProcessedTableManager, - $$ListItemsTableInsertCompanionBuilder, - $$ListItemsTableUpdateCompanionBuilder> { - $$ListItemsTableProcessedTableManager(super.$state); + static MultiTypedResultKey<$TodoItemsTable, List> + _todoItemsRefsTable(_$AppDatabase db) => + MultiTypedResultKey.fromTable(db.todoItems, + aliasName: + $_aliasNameGenerator(db.listItems.id, db.todoItems.listId)); + + $$TodoItemsTableProcessedTableManager get todoItemsRefs { + final manager = $$TodoItemsTableTableManager($_db, $_db.todoItems) + .filter((f) => f.listId.id($_item.id)); + + final cache = $_typedResult.readTableOrNull(_todoItemsRefsTable($_db)); + return ProcessedTableManager( + manager.$state.copyWith(prefetchedData: cache)); + } } class $$ListItemsTableFilterComposer @@ -899,7 +883,97 @@ class $$ListItemsTableOrderingComposer ColumnOrderings(column, joinBuilders: joinBuilders)); } -typedef $$TodoItemsTableInsertCompanionBuilder = TodoItemsCompanion Function({ +class $$ListItemsTableTableManager extends RootTableManager< + _$AppDatabase, + $ListItemsTable, + ListItem, + $$ListItemsTableFilterComposer, + $$ListItemsTableOrderingComposer, + $$ListItemsTableCreateCompanionBuilder, + $$ListItemsTableUpdateCompanionBuilder, + (ListItem, $$ListItemsTableReferences), + ListItem, + PrefetchHooks Function({bool todoItemsRefs})> { + $$ListItemsTableTableManager(_$AppDatabase db, $ListItemsTable table) + : super(TableManagerState( + db: db, + table: table, + filteringComposer: + $$ListItemsTableFilterComposer(ComposerState(db, table)), + orderingComposer: + $$ListItemsTableOrderingComposer(ComposerState(db, table)), + updateCompanionCallback: ({ + Value id = const Value.absent(), + Value createdAt = const Value.absent(), + Value name = const Value.absent(), + Value ownerId = const Value.absent(), + Value rowid = const Value.absent(), + }) => + ListItemsCompanion( + id: id, + createdAt: createdAt, + name: name, + ownerId: ownerId, + rowid: rowid, + ), + createCompanionCallback: ({ + Value id = const Value.absent(), + Value createdAt = const Value.absent(), + required String name, + Value ownerId = const Value.absent(), + Value rowid = const Value.absent(), + }) => + ListItemsCompanion.insert( + id: id, + createdAt: createdAt, + name: name, + ownerId: ownerId, + rowid: rowid, + ), + withReferenceMapper: (p0) => p0 + .map((e) => ( + e.readTable(table), + $$ListItemsTableReferences(db, table, e) + )) + .toList(), + prefetchHooksCallback: ({todoItemsRefs = false}) { + return PrefetchHooks( + db: db, + explicitlyWatchedTables: [if (todoItemsRefs) db.todoItems], + addJoins: null, + getPrefetchedDataCallback: (items) async { + return [ + if (todoItemsRefs) + await $_getPrefetchedData( + currentTable: table, + referencedTable: + $$ListItemsTableReferences._todoItemsRefsTable(db), + managerFromTypedResult: (p0) => + $$ListItemsTableReferences(db, table, p0) + .todoItemsRefs, + referencedItemsForCurrentItem: (item, + referencedItems) => + referencedItems.where((e) => e.listId == item.id), + typedResults: items) + ]; + }, + ); + }, + )); +} + +typedef $$ListItemsTableProcessedTableManager = ProcessedTableManager< + _$AppDatabase, + $ListItemsTable, + ListItem, + $$ListItemsTableFilterComposer, + $$ListItemsTableOrderingComposer, + $$ListItemsTableCreateCompanionBuilder, + $$ListItemsTableUpdateCompanionBuilder, + (ListItem, $$ListItemsTableReferences), + ListItem, + PrefetchHooks Function({bool todoItemsRefs})>; +typedef $$TodoItemsTableCreateCompanionBuilder = TodoItemsCompanion Function({ Value id, required String listId, Value photoId, @@ -924,86 +998,22 @@ typedef $$TodoItemsTableUpdateCompanionBuilder = TodoItemsCompanion Function({ Value rowid, }); -class $$TodoItemsTableTableManager extends RootTableManager< - _$AppDatabase, - $TodoItemsTable, - TodoItem, - $$TodoItemsTableFilterComposer, - $$TodoItemsTableOrderingComposer, - $$TodoItemsTableProcessedTableManager, - $$TodoItemsTableInsertCompanionBuilder, - $$TodoItemsTableUpdateCompanionBuilder> { - $$TodoItemsTableTableManager(_$AppDatabase db, $TodoItemsTable table) - : super(TableManagerState( - db: db, - table: table, - filteringComposer: - $$TodoItemsTableFilterComposer(ComposerState(db, table)), - orderingComposer: - $$TodoItemsTableOrderingComposer(ComposerState(db, table)), - getChildManagerBuilder: (p) => - $$TodoItemsTableProcessedTableManager(p), - getUpdateCompanionBuilder: ({ - Value id = const Value.absent(), - Value listId = const Value.absent(), - Value photoId = const Value.absent(), - Value createdAt = const Value.absent(), - Value completedAt = const Value.absent(), - Value completed = const Value.absent(), - Value description = const Value.absent(), - Value createdBy = const Value.absent(), - Value completedBy = const Value.absent(), - Value rowid = const Value.absent(), - }) => - TodoItemsCompanion( - id: id, - listId: listId, - photoId: photoId, - createdAt: createdAt, - completedAt: completedAt, - completed: completed, - description: description, - createdBy: createdBy, - completedBy: completedBy, - rowid: rowid, - ), - getInsertCompanionBuilder: ({ - Value id = const Value.absent(), - required String listId, - Value photoId = const Value.absent(), - Value createdAt = const Value.absent(), - Value completedAt = const Value.absent(), - Value completed = const Value.absent(), - required String description, - Value createdBy = const Value.absent(), - Value completedBy = const Value.absent(), - Value rowid = const Value.absent(), - }) => - TodoItemsCompanion.insert( - id: id, - listId: listId, - photoId: photoId, - createdAt: createdAt, - completedAt: completedAt, - completed: completed, - description: description, - createdBy: createdBy, - completedBy: completedBy, - rowid: rowid, - ), - )); -} +final class $$TodoItemsTableReferences + extends BaseReferences<_$AppDatabase, $TodoItemsTable, TodoItem> { + $$TodoItemsTableReferences(super.$_db, super.$_table, super.$_typedResult); -class $$TodoItemsTableProcessedTableManager extends ProcessedTableManager< - _$AppDatabase, - $TodoItemsTable, - TodoItem, - $$TodoItemsTableFilterComposer, - $$TodoItemsTableOrderingComposer, - $$TodoItemsTableProcessedTableManager, - $$TodoItemsTableInsertCompanionBuilder, - $$TodoItemsTableUpdateCompanionBuilder> { - $$TodoItemsTableProcessedTableManager(super.$state); + static $ListItemsTable _listIdTable(_$AppDatabase db) => db.listItems + .createAlias($_aliasNameGenerator(db.todoItems.listId, db.listItems.id)); + + $$ListItemsTableProcessedTableManager? get listId { + if ($_item.listId == null) return null; + final manager = $$ListItemsTableTableManager($_db, $_db.listItems) + .filter((f) => f.id($_item.listId!)); + final item = $_typedResult.readTableOrNull(_listIdTable($_db)); + if (item == null) return manager; + return ProcessedTableManager( + manager.$state.copyWith(prefetchedData: [item])); + } } class $$TodoItemsTableFilterComposer @@ -1118,9 +1128,131 @@ class $$TodoItemsTableOrderingComposer } } -class _$AppDatabaseManager { +class $$TodoItemsTableTableManager extends RootTableManager< + _$AppDatabase, + $TodoItemsTable, + TodoItem, + $$TodoItemsTableFilterComposer, + $$TodoItemsTableOrderingComposer, + $$TodoItemsTableCreateCompanionBuilder, + $$TodoItemsTableUpdateCompanionBuilder, + (TodoItem, $$TodoItemsTableReferences), + TodoItem, + PrefetchHooks Function({bool listId})> { + $$TodoItemsTableTableManager(_$AppDatabase db, $TodoItemsTable table) + : super(TableManagerState( + db: db, + table: table, + filteringComposer: + $$TodoItemsTableFilterComposer(ComposerState(db, table)), + orderingComposer: + $$TodoItemsTableOrderingComposer(ComposerState(db, table)), + updateCompanionCallback: ({ + Value id = const Value.absent(), + Value listId = const Value.absent(), + Value photoId = const Value.absent(), + Value createdAt = const Value.absent(), + Value completedAt = const Value.absent(), + Value completed = const Value.absent(), + Value description = const Value.absent(), + Value createdBy = const Value.absent(), + Value completedBy = const Value.absent(), + Value rowid = const Value.absent(), + }) => + TodoItemsCompanion( + id: id, + listId: listId, + photoId: photoId, + createdAt: createdAt, + completedAt: completedAt, + completed: completed, + description: description, + createdBy: createdBy, + completedBy: completedBy, + rowid: rowid, + ), + createCompanionCallback: ({ + Value id = const Value.absent(), + required String listId, + Value photoId = const Value.absent(), + Value createdAt = const Value.absent(), + Value completedAt = const Value.absent(), + Value completed = const Value.absent(), + required String description, + Value createdBy = const Value.absent(), + Value completedBy = const Value.absent(), + Value rowid = const Value.absent(), + }) => + TodoItemsCompanion.insert( + id: id, + listId: listId, + photoId: photoId, + createdAt: createdAt, + completedAt: completedAt, + completed: completed, + description: description, + createdBy: createdBy, + completedBy: completedBy, + rowid: rowid, + ), + withReferenceMapper: (p0) => p0 + .map((e) => ( + e.readTable(table), + $$TodoItemsTableReferences(db, table, e) + )) + .toList(), + prefetchHooksCallback: ({listId = false}) { + return PrefetchHooks( + db: db, + explicitlyWatchedTables: [], + addJoins: < + T extends TableManagerState< + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic, + dynamic>>(state) { + if (listId) { + state = state.withJoin( + currentTable: table, + currentColumn: table.listId, + referencedTable: + $$TodoItemsTableReferences._listIdTable(db), + referencedColumn: + $$TodoItemsTableReferences._listIdTable(db).id, + ) as T; + } + + return state; + }, + getPrefetchedDataCallback: (items) async { + return []; + }, + ); + }, + )); +} + +typedef $$TodoItemsTableProcessedTableManager = ProcessedTableManager< + _$AppDatabase, + $TodoItemsTable, + TodoItem, + $$TodoItemsTableFilterComposer, + $$TodoItemsTableOrderingComposer, + $$TodoItemsTableCreateCompanionBuilder, + $$TodoItemsTableUpdateCompanionBuilder, + (TodoItem, $$TodoItemsTableReferences), + TodoItem, + PrefetchHooks Function({bool listId})>; + +class $AppDatabaseManager { final _$AppDatabase _db; - _$AppDatabaseManager(this._db); + $AppDatabaseManager(this._db); $$ListItemsTableTableManager get listItems => $$ListItemsTableTableManager(_db, _db.listItems); $$TodoItemsTableTableManager get todoItems => diff --git a/demos/supabase-todolist-drift/pubspec.lock b/demos/supabase-todolist-drift/pubspec.lock index 7038b5e6..6b5f4637 100644 --- a/demos/supabase-todolist-drift/pubspec.lock +++ b/demos/supabase-todolist-drift/pubspec.lock @@ -53,10 +53,10 @@ packages: dependency: transitive description: name: app_links_web - sha256: "74586ed5f3c4786341e82a0fa43c39ec3f13108a550f74e80d8bf68aa11349d1" + sha256: af060ed76183f9e2b87510a9480e56a5352b6c249778d07bd2c95fc35632a555 url: "https://pub.dev" source: hosted - version: "1.0.3" + version: "1.0.4" archive: dependency: transitive description: @@ -261,10 +261,10 @@ packages: dependency: transitive description: name: cross_file - sha256: "55d7b444feb71301ef6b8838dbc1ae02e63dd48c8773f3810ff53bb1e2945b32" + sha256: "7caf6a750a0c04effbb52a676dce9a4a592e10ad35c34d6d2d0e4811160d5670" url: "https://pub.dev" source: hosted - version: "0.3.4+1" + version: "0.3.4+2" crypto: dependency: transitive description: @@ -285,18 +285,18 @@ packages: dependency: "direct main" description: name: drift - sha256: "6acedc562ffeed308049f78fb1906abad3d65714580b6745441ee6d50ec564cd" + sha256: d6ff1ec6a0f3fa097dda6b776cf601f1f3d88b53b287288e09c1306f394fb1b3 url: "https://pub.dev" source: hosted - version: "2.18.0" + version: "2.20.3" drift_dev: dependency: "direct dev" description: name: drift_dev - sha256: d9b020736ea85fff1568699ce18b89fabb3f0f042e8a7a05e84a3ec20d39acde + sha256: "3ee987578ca2281b5ff91eadd757cd6dd36001458d6e33784f990d67ff38f756" url: "https://pub.dev" source: hosted - version: "2.18.0" + version: "2.20.3" drift_sqlite_async: dependency: "direct main" description: @@ -500,18 +500,18 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" url: "https://pub.dev" source: hosted - version: "10.0.4" + version: "10.0.5" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.5" leak_tracker_testing: dependency: transitive description: @@ -548,18 +548,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.15.0" mime: dependency: transitive description: @@ -686,14 +686,14 @@ packages: path: "../../packages/powersync" relative: true source: path - version: "1.8.2" + version: "1.8.4" powersync_attachments_helper: dependency: "direct main" description: path: "../../packages/powersync_attachments_helper" relative: true source: path - version: "0.6.6" + version: "0.6.8" powersync_flutter_libs: dependency: "direct overridden" description: @@ -793,10 +793,10 @@ packages: dependency: transitive description: name: shared_preferences_web - sha256: "9aee1089b36bd2aafe06582b7d7817fd317ef05fc30e6ba14bff247d0933042a" + sha256: d2ca4132d3946fec2184261726b355836a82c33d7d5b67af32692aff18a4684e url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.4.2" shared_preferences_windows: dependency: transitive description: @@ -854,10 +854,10 @@ packages: dependency: transitive description: name: sqlite3 - sha256: fde692580bee3379374af1f624eb3e113ab2865ecb161dbe2d8ac2de9735dbdb + sha256: "45f168ae2213201b54e09429ed0c593dc2c88c924a1488d6f9c523a255d567cb" url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "2.4.6" sqlite3_flutter_libs: dependency: transitive description: @@ -870,26 +870,26 @@ packages: dependency: transitive description: name: sqlite3_web - sha256: "51fec34757577841cc72d79086067e3651c434669d5af557a5c106787198a76f" + sha256: b4043336e74cac54d3ca44c90434a3c310550b9a80851b09ad1af282af0df6d4 url: "https://pub.dev" source: hosted - version: "0.1.2-wip" + version: "0.1.3" sqlite_async: dependency: "direct main" description: name: sqlite_async - sha256: "7708a2129582d43614f436e28623fcbeb142a02022ba372e45cfe403c84dd2b5" + sha256: c5c57b025133d0869cce6a647f99b378ab42cc26488ff22ff942ae9588201af0 url: "https://pub.dev" source: hosted - version: "0.8.3" + version: "0.9.0" sqlparser: dependency: transitive description: name: sqlparser - sha256: ade9a67fd70d0369329ed3373208de7ebd8662470e8c396fc8d0d60f9acdfc9f + sha256: "852cf80f9e974ac8e1b613758a8aa640215f7701352b66a7f468e95711eb570b" url: "https://pub.dev" source: hosted - version: "0.36.0" + version: "0.38.1" stack_trace: dependency: transitive description: @@ -958,10 +958,10 @@ packages: dependency: transitive description: name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "0.7.2" timing: dependency: transitive description: @@ -1038,10 +1038,10 @@ packages: dependency: transitive description: name: url_launcher_web - sha256: "8d9e750d8c9338601e709cd0885f95825086bd8b642547f26bda435aade95d8a" + sha256: "772638d3b34c779ede05ba3d38af34657a05ac55b06279ea6edd409e323dca8e" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.3" url_launcher_windows: dependency: transitive description: @@ -1070,10 +1070,10 @@ packages: dependency: transitive description: name: vm_service - sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" url: "https://pub.dev" source: hosted - version: "14.2.1" + version: "14.2.5" watcher: dependency: transitive description: @@ -1086,18 +1086,18 @@ packages: dependency: transitive description: name: web - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "1.1.0" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42" + sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "2.4.0" xdg_directories: dependency: transitive description: diff --git a/demos/supabase-todolist-drift/pubspec.yaml b/demos/supabase-todolist-drift/pubspec.yaml index 93fb558d..00d20b5f 100644 --- a/demos/supabase-todolist-drift/pubspec.yaml +++ b/demos/supabase-todolist-drift/pubspec.yaml @@ -18,16 +18,16 @@ dependencies: camera: ^0.10.5+7 image: ^4.1.3 universal_io: ^2.2.2 - sqlite_async: ^0.8.3 - drift: 2.18.0 - drift_sqlite_async: ^0.1.0-alpha.4 + sqlite_async: ^0.9.0 + drift: ^2.20.2 + drift_sqlite_async: ^0.2.0-alpha.1 dev_dependencies: flutter_test: sdk: flutter flutter_lints: ^3.0.1 - drift_dev: 2.18.0 + drift_dev: ^2.20.3 build_runner: ^2.4.8 flutter: diff --git a/demos/supabase-todolist-optional-sync/pubspec.lock b/demos/supabase-todolist-optional-sync/pubspec.lock index 94989050..ae5232e3 100644 --- a/demos/supabase-todolist-optional-sync/pubspec.lock +++ b/demos/supabase-todolist-optional-sync/pubspec.lock @@ -29,10 +29,10 @@ packages: dependency: transitive description: name: app_links_web - sha256: "74586ed5f3c4786341e82a0fa43c39ec3f13108a550f74e80d8bf68aa11349d1" + sha256: af060ed76183f9e2b87510a9480e56a5352b6c249778d07bd2c95fc35632a555 url: "https://pub.dev" source: hosted - version: "1.0.3" + version: "1.0.4" archive: dependency: transitive description: @@ -141,10 +141,10 @@ packages: dependency: transitive description: name: cross_file - sha256: "55d7b444feb71301ef6b8838dbc1ae02e63dd48c8773f3810ff53bb1e2945b32" + sha256: "7caf6a750a0c04effbb52a676dce9a4a592e10ad35c34d6d2d0e4811160d5670" url: "https://pub.dev" source: hosted - version: "0.3.4+1" + version: "0.3.4+2" crypto: dependency: transitive description: @@ -260,10 +260,10 @@ packages: dependency: transitive description: name: http - sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" + sha256: b9c29a161230ee03d3ccf545097fccd9b87a5264228c5d348202e0f0c28f9010 url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.2.2" http_parser: dependency: transitive description: @@ -300,18 +300,18 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" url: "https://pub.dev" source: hosted - version: "10.0.4" + version: "10.0.5" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.5" leak_tracker_testing: dependency: transitive description: @@ -348,18 +348,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.15.0" mime: dependency: transitive description: @@ -470,7 +470,7 @@ packages: path: "../../packages/powersync" relative: true source: path - version: "1.8.2" + version: "1.8.4" powersync_flutter_libs: dependency: "direct overridden" description: @@ -562,10 +562,10 @@ packages: dependency: transitive description: name: shared_preferences_web - sha256: "9aee1089b36bd2aafe06582b7d7817fd317ef05fc30e6ba14bff247d0933042a" + sha256: d762709c2bbe80626ecc819143013cc820fa49ca5e363620ee20a8b15a3e3daf url: "https://pub.dev" source: hosted - version: "2.3.0" + version: "2.2.1" shared_preferences_windows: dependency: transitive description: @@ -599,10 +599,10 @@ packages: dependency: transitive description: name: sqlite3 - sha256: fde692580bee3379374af1f624eb3e113ab2865ecb161dbe2d8ac2de9735dbdb + sha256: "45f168ae2213201b54e09429ed0c593dc2c88c924a1488d6f9c523a255d567cb" url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "2.4.6" sqlite3_flutter_libs: dependency: transitive description: @@ -615,18 +615,18 @@ packages: dependency: transitive description: name: sqlite3_web - sha256: "51fec34757577841cc72d79086067e3651c434669d5af557a5c106787198a76f" + sha256: b4043336e74cac54d3ca44c90434a3c310550b9a80851b09ad1af282af0df6d4 url: "https://pub.dev" source: hosted - version: "0.1.2-wip" + version: "0.1.3" sqlite_async: dependency: "direct main" description: name: sqlite_async - sha256: "7708a2129582d43614f436e28623fcbeb142a02022ba372e45cfe403c84dd2b5" + sha256: c5c57b025133d0869cce6a647f99b378ab42cc26488ff22ff942ae9588201af0 url: "https://pub.dev" source: hosted - version: "0.8.3" + version: "0.9.0" stack_trace: dependency: transitive description: @@ -695,10 +695,10 @@ packages: dependency: transitive description: name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "0.7.2" typed_data: dependency: transitive description: @@ -767,10 +767,10 @@ packages: dependency: transitive description: name: url_launcher_web - sha256: "8d9e750d8c9338601e709cd0885f95825086bd8b642547f26bda435aade95d8a" + sha256: "772638d3b34c779ede05ba3d38af34657a05ac55b06279ea6edd409e323dca8e" url: "https://pub.dev" source: hosted - version: "2.3.1" + version: "2.3.3" url_launcher_windows: dependency: transitive description: @@ -799,26 +799,26 @@ packages: dependency: transitive description: name: vm_service - sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" url: "https://pub.dev" source: hosted - version: "14.2.1" + version: "14.2.5" web: dependency: transitive description: name: web - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "1.1.0" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42" + sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "2.4.0" win32: dependency: transitive description: diff --git a/demos/supabase-todolist-optional-sync/pubspec.yaml b/demos/supabase-todolist-optional-sync/pubspec.yaml index 91b03d26..6dae2cb4 100644 --- a/demos/supabase-todolist-optional-sync/pubspec.yaml +++ b/demos/supabase-todolist-optional-sync/pubspec.yaml @@ -18,7 +18,7 @@ dependencies: camera: ^0.10.5+7 image: ^4.1.3 universal_io: ^2.2.2 - sqlite_async: ^0.8.3 + sqlite_async: ^0.9.0 dev_dependencies: flutter_test: diff --git a/demos/supabase-todolist/pubspec.lock b/demos/supabase-todolist/pubspec.lock index dc4739a4..38e8ff94 100644 --- a/demos/supabase-todolist/pubspec.lock +++ b/demos/supabase-todolist/pubspec.lock @@ -300,18 +300,18 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" url: "https://pub.dev" source: hosted - version: "10.0.4" + version: "10.0.5" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.5" leak_tracker_testing: dependency: transitive description: @@ -348,18 +348,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.15.0" mime: dependency: transitive description: @@ -470,14 +470,14 @@ packages: path: "../../packages/powersync" relative: true source: path - version: "1.8.2" + version: "1.8.4" powersync_attachments_helper: dependency: "direct main" description: path: "../../packages/powersync_attachments_helper" relative: true source: path - version: "0.6.6" + version: "0.6.8" powersync_flutter_libs: dependency: "direct overridden" description: @@ -606,10 +606,10 @@ packages: dependency: transitive description: name: sqlite3 - sha256: fde692580bee3379374af1f624eb3e113ab2865ecb161dbe2d8ac2de9735dbdb + sha256: "45f168ae2213201b54e09429ed0c593dc2c88c924a1488d6f9c523a255d567cb" url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "2.4.6" sqlite3_flutter_libs: dependency: transitive description: @@ -622,18 +622,18 @@ packages: dependency: transitive description: name: sqlite3_web - sha256: "51fec34757577841cc72d79086067e3651c434669d5af557a5c106787198a76f" + sha256: b4043336e74cac54d3ca44c90434a3c310550b9a80851b09ad1af282af0df6d4 url: "https://pub.dev" source: hosted - version: "0.1.2-wip" + version: "0.1.3" sqlite_async: dependency: "direct main" description: name: sqlite_async - sha256: "7708a2129582d43614f436e28623fcbeb142a02022ba372e45cfe403c84dd2b5" + sha256: c5c57b025133d0869cce6a647f99b378ab42cc26488ff22ff942ae9588201af0 url: "https://pub.dev" source: hosted - version: "0.8.3" + version: "0.9.0" stack_trace: dependency: transitive description: @@ -702,10 +702,10 @@ packages: dependency: transitive description: name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "0.7.2" typed_data: dependency: transitive description: @@ -806,18 +806,18 @@ packages: dependency: transitive description: name: vm_service - sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" url: "https://pub.dev" source: hosted - version: "14.2.1" + version: "14.2.5" web: dependency: transitive description: name: web - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "1.1.0" web_socket: dependency: transitive description: diff --git a/demos/supabase-todolist/pubspec.yaml b/demos/supabase-todolist/pubspec.yaml index 98b71772..56904ad5 100644 --- a/demos/supabase-todolist/pubspec.yaml +++ b/demos/supabase-todolist/pubspec.yaml @@ -19,7 +19,7 @@ dependencies: camera: ^0.10.5+7 image: ^4.1.3 universal_io: ^2.2.2 - sqlite_async: ^0.8.3 + sqlite_async: ^0.9.0 dev_dependencies: flutter_test: diff --git a/packages/powersync/pubspec.yaml b/packages/powersync/pubspec.yaml index 369b3b43..f3789cd4 100644 --- a/packages/powersync/pubspec.yaml +++ b/packages/powersync/pubspec.yaml @@ -10,7 +10,7 @@ dependencies: flutter: sdk: flutter - sqlite_async: ^0.8.3 + sqlite_async: ^0.9.0 # We only use sqlite3 as a transitive dependency, # but right now we need a minimum of v2.4.5. sqlite3: ^2.4.5 diff --git a/packages/powersync_attachments_helper/pubspec.yaml b/packages/powersync_attachments_helper/pubspec.yaml index 9a4d6d49..27ca066f 100644 --- a/packages/powersync_attachments_helper/pubspec.yaml +++ b/packages/powersync_attachments_helper/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: powersync: ^1.8.4 logging: ^1.2.0 - sqlite_async: ^0.8.3 + sqlite_async: ^0.9.0 path_provider: ^2.0.13 dev_dependencies: From e668e294e89c4ce8492b0ef7ea44875979fd1087 Mon Sep 17 00:00:00 2001 From: David Martos Date: Thu, 10 Oct 2024 10:35:17 +0200 Subject: [PATCH 2/3] bump sqlite3 version --- packages/powersync/pubspec.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/powersync/pubspec.yaml b/packages/powersync/pubspec.yaml index f3789cd4..379ff3cd 100644 --- a/packages/powersync/pubspec.yaml +++ b/packages/powersync/pubspec.yaml @@ -12,8 +12,8 @@ dependencies: sqlite_async: ^0.9.0 # We only use sqlite3 as a transitive dependency, - # but right now we need a minimum of v2.4.5. - sqlite3: ^2.4.5 + # but right now we need a minimum of v2.4.6. + sqlite3: ^2.4.6 universal_io: ^2.0.0 sqlite3_flutter_libs: ^0.5.23 powersync_flutter_libs: ^0.3.0 From b6c3d93a9414f5d09c705fe1771d01bc6ec19b13 Mon Sep 17 00:00:00 2001 From: David Martos Date: Thu, 10 Oct 2024 14:24:44 +0200 Subject: [PATCH 3/3] update drift demo --- demos/supabase-todolist-drift/pubspec.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/supabase-todolist-drift/pubspec.lock b/demos/supabase-todolist-drift/pubspec.lock index 6b5f4637..0f726ee6 100644 --- a/demos/supabase-todolist-drift/pubspec.lock +++ b/demos/supabase-todolist-drift/pubspec.lock @@ -301,10 +301,10 @@ packages: dependency: "direct main" description: name: drift_sqlite_async - sha256: bbee2a2fc8eac6b85765d566f1b0e94252061c92289a3a5dcf75b3b8cb3533dc + sha256: cf5cba587b29e3cebaf5abefaa3f61be7e2232d9a0d9bcc0ba64341f3e77ac88 url: "https://pub.dev" source: hosted - version: "0.1.0-alpha.4" + version: "0.2.0-alpha.1" fake_async: dependency: transitive description: