cheerfulstoic / ecto_watch

EctoWatch allows you to easily get notifications about database changes directly from PostgreSQL.
201 stars 7 forks source link

Allow subscribing to association columns #11

Closed cheerfulstoic closed 4 months ago

cheerfulstoic commented 4 months ago

Fixes #6

Discussion here: https://github.com/cheerfulstoic/ecto_watch/discussions/7

Need to update the README with these changes 😅

I'm definitely not happy with this code 😅 But it's pretty well tested and so it seems to work for now. I'm planning on switching messages to three-element tuples instead of four-element tuples (see this discussion) and that will be a good opportunity to clean things up

cheerfulstoic commented 4 months ago

Hey @barrelltech

I finally got an implementation for #6. I feel pretty good about the tests and I would normally release it on Hex, but I'm going to be offline for a bit, so I'll wait until I'm back. In the meantime maybe you'd like to try pointing to this branch in your mix.exs?

cheerfulstoic commented 4 months ago

To make it easier to try out I've released a 0.6.0-rc1 version

cheerfulstoic commented 4 months ago

You might also want to check out rc2 which includes the changes in this PR: #12

barrelltech commented 4 months ago

Awesome! Just saw this now and downloaded it, but I won't get to it until tomorrow. Had to get things deployed before I got too far behind 😂

cheerfulstoic commented 4 months ago

I just released 0.6.0 as a non-RC version to support this 🎉