TODO: Add description
If available in Hex, the package can be installed
by adding db_watch
to your list of dependencies in mix.exs
:
def deps do
[
{:db_watch, "~> 0.1.0"}
]
end
post_watcher = %DbWatch{
module: PostObserver,
db_type: :postgres,
conn: PostObserver.db_connection,
table: "posts",
id: "post_observer"
}