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

Detect db schema changes #479

Closed
wants to merge 3 commits into from
Closed

Detect db schema changes #479

wants to merge 3 commits into from

Conversation

begriffs
Copy link
Member

While the correct approach to detecting schema changes is outlined in #475, I moved ahead on this PR to figure out how to make the code keep a changing schema inside an MVar. It currently polls for changes every five minutes.

While we wait for support for postgresql LISTEN in hasql to arrive in the next week I wanted to put this PR out for code review.

Awaiting ability to LISTEN with hasql to avoid the polling
@begriffs
Copy link
Member Author

Actually it seems like the polling loop never runs more than once...

@begriffs
Copy link
Member Author

I created another PR for this. It is simpler in that it uses an IORef rather than an MVar. Also it waits for an explicit signal to reload the schema.

@begriffs begriffs closed this Apr 23, 2016
@begriffs begriffs deleted the refresh-schema branch November 27, 2016 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant