forked from vlasky/zongji
-
Notifications
You must be signed in to change notification settings - Fork 1
Add pause resume functionality #3
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
Changes from 24 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
5428322
Added pause / resume functionality to zongji listener
Rentacookie f5b4ff6
Changeset
Rentacookie 32d7bb5
Added typescript types declarations
Rentacookie 190cfa1
Added changeset
Rentacookie c0dd696
Fixed workspace package structure
Rentacookie fae16f9
Made types package public
Rentacookie 3a850f7
No default export for types package
Rentacookie ed63064
Integrated types with main package
Rentacookie ad88a60
Made project into a module
Rentacookie 9b0adfe
Revert module flag
Rentacookie d7ffe63
Try declare class for Zongji class type
Rentacookie e618993
Try with export default
Rentacookie b52fdee
Try with named export
Rentacookie aa4b533
Try both named and default export
Rentacookie 53329b8
Added binlog tablemap event type definition
Rentacookie e1a7d1c
Only emit table map events on table changes.
Rentacookie 6feffcd
Slight adjustments to types to correctly reflect binlog event structure.
Rentacookie ec6bfa4
Cleaned up defined types, and added descriptions
Rentacookie b755c41
Added potential race condition safety net to not start the binlog str…
Rentacookie 2e6288f
Added another stop check before starting the listener
Rentacookie 3c56942
Don't emit errors on an already stopped listener.
Rentacookie 76462dd
Exposed port configuration in types.
Rentacookie 36a65a7
Don't run startup checks if listener was already stopped
Rentacookie d99e149
Updated changeset
Rentacookie c95b157
Added test
Rentacookie 0804f1d
Fixed test setup
Rentacookie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'@powersync/mysql-zongji': minor | ||
--- | ||
|
||
Added the functionality to pause / resume the zongji binlog listener | ||
Improved stop/start functionality to better handle some race conditions | ||
Added type definitions | ||
The first time a TableMap event is emitted, it will always be emitted, but subsequent events will only be emitted if the table map has changed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v20.12.2 | ||
v22.14.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.