   (jdbc/with-connection  (db-conn-info (config :db))
     (exec-sql "SELECT now()" []))
 
-  (register-listener :test-listener (:database (config :db)) "irmgard" "example_table"
-                     (fn [recs]
-                       (log/infof "ROW CHANGE! %s" recs)))
 
   (jdbc/with-connection  (db-conn-info (config :db))
     (process-row-changes

          dbname     (-> conf :dbconf :subname)
          sleep-time (:sleep-time conf 1000)]
      (loop [conf     conf
             continue @(:continue conf)]
        (if continue
          (do
            (log/infof "db-watcher[%s] polling" dbname)

    (DriverManager/getConnection url (:username c) (:password c))))

(comment
  (register-listener :test-listener (:database (config :db)) "irmgard" "example_table"
                     (fn [recs]
                       (log/infof "ROW CHANGE! %s" recs)))

  (do
    (stop-watcher :test1)
    (start-watcher :test1 (db-conn-info (config :db))))
