-
Notifications
You must be signed in to change notification settings - Fork 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
Add support for triggers and associated functions #68
Merged
Conversation
This file contains 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
jsynacek
force-pushed
the
jsynacek-triggers
branch
4 times, most recently
from
April 7, 2022 12:14
f3fe2c0
to
b02fb04
Compare
jsynacek
force-pushed
the
jsynacek-triggers
branch
2 times, most recently
from
April 12, 2022 08:23
5caf926
to
3a44e59
Compare
jsynacek
changed the title
WIP: Initial support for defining triggers
Add support for triggers and associated functions
Apr 12, 2022
arybczak
reviewed
Apr 12, 2022
arybczak
reviewed
Apr 29, 2022
* Remove superfluous semicolon * Remove Eq instance for Trigger * Compare WHEN clauses in a similar manner as CHECKs are compared * Use do blocks instead of variable shadowing
* Use unsafeSQL instead of fromString * Update TODO with issue link * Add dropTrigger * CreateTriggerMigration Trigger should not exit. It should be just a function that can be added to any StandardMigration * Rewrite tests using createTrigger and StandardMigration and add more tests for dropTrigger as well
jsynacek
force-pushed
the
jsynacek-triggers
branch
from
May 4, 2022 16:01
1bf9462
to
c7faa21
Compare
jsynacek
commented
May 4, 2022
jsynacek
commented
May 4, 2022
jsynacek
commented
May 4, 2022
jsynacek
commented
May 4, 2022
marco44
approved these changes
May 9, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved to the best of my capabilities, which is not a lot in haskell :)
arybczak
approved these changes
May 9, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍 I added 3 minor comments.
Co-authored-by: Andrzej Rybczak <arybczak@users.noreply.github.com>
Co-authored-by: Andrzej Rybczak <arybczak@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.