Skip to content
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

engine/processinglock: migrate to sqlc #4106

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mastercactapus
Copy link
Member

Description:
This PR updates the module locking code to use sqlc for database queries, but is behaviorally the same.

One notable change: on startup only a module version mismatch will log an error. This should never happen during normal operation, including during GoAlert updates. However, in the event of rolling back an engine instance to a version of GoAlert that is incompatible with one or more modules will now log an error to indicate the issue.

This is important as a version mismatch will result in the engine not processing that type of data.

- Converted raw SQL usage to typed SQL methods in `gadb`
- Added comment explaining version discrepencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant