Skip to content

Fix watch query table names #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 15, 2024
Merged

Fix watch query table names #123

merged 4 commits into from
Jul 15, 2024

Conversation

mugikhan
Copy link
Contributor

@mugikhan mugikhan commented Jul 15, 2024

Description

Addresses the enhancement in #116 with watch queries not recognizing powersync table names.

Work done

  • Prepend powersync identifiers to tables specified in a the triggerOnTables parameter in a watch query.
  • Upgrade dependency sqlite_async to 0.8.1

@mugikhan mugikhan requested a review from rkistner July 15, 2024 11:48
rkistner
rkistner previously approved these changes Jul 15, 2024
@mugikhan mugikhan requested a review from rkistner July 15, 2024 13:20
@mugikhan mugikhan merged commit cde73d9 into master Jul 15, 2024
3 of 4 checks passed
@mugikhan mugikhan deleted the fix/watch-query-table-names branch July 15, 2024 14:16
mugikhan added a commit that referenced this pull request Jul 17, 2024
* Readme update: Messaging/description of powersync

* remove duplicate word

* Load and use PowerSync rust extension (#92)

* Initial extension testing.

* Replace schema logic with rust extension.

* Use extension for saving operations.

* Auto tx_id.

* Use sync_local op.

* Validate checksums using extension.

* clear_remove_ops

* delete_pending_buckets

* delete_bucket

* Fix deadlock on closing of connection.

* WIP.

* Update/fix tests.

* Add view name override.

* Retry opening database if locked.

* Fix lint issues.

* Use higher-level `updateSchema` in tests; test viewName alias.

* Load extension for android and iOS

* Load extension for iOS, MacOS and Android

* Include powersync_flutter_libs

* Rename android package

* Update windows and linux extension scripts

* Download binary in cmake

* Fix arch in cmake

* Fix binary download

* Load extension on windows

* Clean up readme and changelog

* Remove test code

* Update Abi check for current platform

* Clean up unused files

* Update path dependencies

* Test downloading powersync binary for tests

* Fix download for linux binary

* Add binary download for demos workflow

* Download latest binaries

* Bump version of powersync

* Bump minor version

---------

Co-authored-by: Ralf Kistner <ralf@journeyapps.com>

* Upgrade powersync-sqlite-core to version 0.1.7 for Android (#95)

* Upgrade sqlite-core to version 0.1.7 for Android
Upgrade powersync flutter libs to version 0.1.0

* Update demos versions

* Bump powersync version (#96)

* Update existing changelog message for powersync (#97)

* Override default macOS SQLite for tests (#99)

* Override default macOS sqlite db for tests

* Update to use flutter test rather than dart test

* Added documentation

* Check if abort future is completed before completing it (#100)

* Check if abort future is completed before completing it

* Bump powersync version

* Upgrade sqlite_async (#105)

* Use updated sqlite_async package

* Update to CommonDatabase for sqlite_async

* Update open DB to be synchronous

* Upgrade sqlite_async.
Update changelog and bump versions

* Fix linting errors

* boilerplate

* the app :)

* more boilerplate

* fix deps and rename app name

* bump to latest sqlite_async

* chore: fix pana score checks (#110)

* snake_case apiclient

* fix `dart analyze` output

* `dart format`

* Add hasSynced and waitForFirstSync (#112)

* Add hasSynced and waitForFirstSync

* Export sqlite3_common

* Add example code for hasSynced
Bump version

* Close http connections immediately on disconnect.

* Fix some errors when closing client while connecting.

* Remove retry delay when aborting.

* More accurate connection counts.

* Fix Future already completed when calling waitForFirstSync (#117)

* Ensure future is not completed

* Bump version

* Add changelog entry for issue 114.

* Iterate through stream instead of listening to it

* Fix changelog message

---------

Co-authored-by: Ralf Kistner <ralf@journeyapps.com>

* [Feature] Added user parameters support when connecting  (#98)

* Added support for user parameters on connection

* Added changelog notes and updated demos.

* Updated .connect() signature to match powersync-js.

* [Chore] Update Django Demo Readme (#120)

* update Django readme

* remove unneeded override (#121)

* Remove unusued imports

* Update sqlite3 wasm
Script to download core for testing

* Add updateHasSynced to db_mixin
Pr feedback and cleanup

* Fix hasSynced status

* Make client params public

* Abort sync on aborted disconnect

* fix bug in setStatus

* Fix native powersync_flutter_libs dependency

* Add powersync_init on database init

* Update js dependency

* Update supabase_flutter

* Download core binary with dart script instead of github action

* Fix watch query table names (#123)

* Fix watch query table names

* Add to changelog

* Fix check for null or empty triggerOnTables

* Upgrade sqlite_async version for attachments helper

* [Fix] Offline has synced (#124)

* fix offline has synced

* Add watch query table names fix

* Add chrome test

* Remove internalTrackedWrite for web database

* Increase 'Multiple calls to disconnect' test timeout

* Remove timeout and separate flutter and dart tests

* Complete abort on disconnect

---------

Co-authored-by: Conrad Hofmeyr <cahofmeyr@gmail.com>
Co-authored-by: Ralf Kistner <ralf@journeyapps.com>
Co-authored-by: Kobie Botha <kobie@journeyapps.com>
Co-authored-by: stevensJourney <51082125+stevensJourney@users.noreply.github.com>
Co-authored-by: Christiaan Landman <chriz.ek@gmail.com>
Co-authored-by: Dieter Plaetinck <dieter@plaetinck.be>
Co-authored-by: Steven Ontong <steven@journeyapps.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants