Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 468 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 468 Bytes

DbWatch

TODO: Add description

Installation

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

Usage

post_watcher = %DbWatch{
      module: PostObserver, 
      db_type: :postgres, 
      conn: PostObserver.db_connection, 
      table: "posts", 
      id: "post_observer"
    }