{"action":"created","comment":{"url":"https://api.github.com/repos/paulserraino/pg-pubsub/pulls/comments/25568829","id":25568829,"diff_hunk":"@@ -1,6 +1,6 @@\n {\n   \"name\": \"pg-dispatch\",\n-  \"version\": \"0.0.1\",\n+  \"version\": \"0.1.0\",","path":"package.json","position":4,"original_position":4,"commit_id":"5718fe6b3ba7653edb0b2b9e52e619dd39b86dd0","original_commit_id":"a9bc3f7dae8e566d542edfc245ed7645c248dabe","user":{"login":"epoberezkin","id":2769109,"avatar_url":"https://avatars.githubusercontent.com/u/2769109?v=3","gravatar_id":"","url":"https://api.github.com/users/epoberezkin","html_url":"https://github.com/epoberezkin","followers_url":"https://api.github.com/users/epoberezkin/followers","following_url":"https://api.github.com/users/epoberezkin/following{/other_user}","gists_url":"https://api.github.com/users/epoberezkin/gists{/gist_id}","starred_url":"https://api.github.com/users/epoberezkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epoberezkin/subscriptions","organizations_url":"https://api.github.com/users/epoberezkin/orgs","repos_url":"https://api.github.com/users/epoberezkin/repos","events_url":"https://api.github.com/users/epoberezkin/events{/privacy}","received_events_url":"https://api.github.com/users/epoberezkin/received_events","type":"User","site_admin":false},"body":"yes, no problem","created_at":"2015-03-01T16:51:43Z","updated_at":"2015-03-01T16:51:43Z","html_url":"https://github.com/paulserraino/pg-pubsub/pull/2#discussion_r25568829","pull_request_url":"https://api.github.com/repos/paulserraino/pg-pubsub/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/paulserraino/pg-pubsub/pulls/comments/25568829"},"html":{"href":"https://github.com/paulserraino/pg-pubsub/pull/2#discussion_r25568829"},"pull_request":{"href":"https://api.github.com/repos/paulserraino/pg-pubsub/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/paulserraino/pg-pubsub/pulls/2","id":30244324,"html_url":"https://github.com/paulserraino/pg-pubsub/pull/2","diff_url":"https://github.com/paulserraino/pg-pubsub/pull/2.diff","patch_url":"https://github.com/paulserraino/pg-pubsub/pull/2.patch","issue_url":"https://api.github.com/repos/paulserraino/pg-pubsub/issues/2","number":2,"state":"open","locked":false,"title":"Method to install procedures, subscribe to multiple tables, etc.","user":{"login":"epoberezkin","id":2769109,"avatar_url":"https://avatars.githubusercontent.com/u/2769109?v=3","gravatar_id":"","url":"https://api.github.com/users/epoberezkin","html_url":"https://github.com/epoberezkin","followers_url":"https://api.github.com/users/epoberezkin/followers","following_url":"https://api.github.com/users/epoberezkin/following{/other_user}","gists_url":"https://api.github.com/users/epoberezkin/gists{/gist_id}","starred_url":"https://api.github.com/users/epoberezkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epoberezkin/subscriptions","organizations_url":"https://api.github.com/users/epoberezkin/orgs","repos_url":"https://api.github.com/users/epoberezkin/repos","events_url":"https://api.github.com/users/epoberezkin/events{/privacy}","received_events_url":"https://api.github.com/users/epoberezkin/received_events","type":"User","site_admin":false},"body":"Please let me know if this is too much of a change. It breaks backward compatibility as constructor expects options instead of client.\r\nChanges\r\n1. Method to install procedures - I think it is more convenient as it allows to update them without the need of library users to manage it in db. Also it allows to make them configurable via options.\r\n2. Subscribe to multiple table with one call\r\n3. All tables send notifications via the same channel - no need to have multiple subscriptions to postgres\r\n\r\nTODO\r\n1. Optionally do not send update notification when there were no changes \r\n2. Configure the list of columns included in payload, possibly separately for data and old_data (in case there are some big columns that may not be needed in updates)","created_at":"2015-03-01T16:26:42Z","updated_at":"2015-03-01T16:51:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c84a739980daa59a6e50c65374496759112239ea","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/paulserraino/pg-pubsub/pulls/2/commits","review_comments_url":"https://api.github.com/repos/paulserraino/pg-pubsub/pulls/2/comments","review_comment_url":"https://api.github.com/repos/paulserraino/pg-pubsub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paulserraino/pg-pubsub/issues/2/comments","statuses_url":"https://api.github.com/repos/paulserraino/pg-pubsub/statuses/5718fe6b3ba7653edb0b2b9e52e619dd39b86dd0","head":{"label":"epoberezkin:master","ref":"master","sha":"5718fe6b3ba7653edb0b2b9e52e619dd39b86dd0","user":{"login":"epoberezkin","id":2769109,"avatar_url":"https://avatars.githubusercontent.com/u/2769109?v=3","gravatar_id":"","url":"https://api.github.com/users/epoberezkin","html_url":"https://github.com/epoberezkin","followers_url":"https://api.github.com/users/epoberezkin/followers","following_url":"https://api.github.com/users/epoberezkin/following{/other_user}","gists_url":"https://api.github.com/users/epoberezkin/gists{/gist_id}","starred_url":"https://api.github.com/users/epoberezkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epoberezkin/subscriptions","organizations_url":"https://api.github.com/users/epoberezkin/orgs","repos_url":"https://api.github.com/users/epoberezkin/repos","events_url":"https://api.github.com/users/epoberezkin/events{/privacy}","received_events_url":"https://api.github.com/users/epoberezkin/received_events","type":"User","site_admin":false},"repo":{"id":31492394,"name":"pg-pubsub","full_name":"epoberezkin/pg-pubsub","owner":{"login":"epoberezkin","id":2769109,"avatar_url":"https://avatars.githubusercontent.com/u/2769109?v=3","gravatar_id":"","url":"https://api.github.com/users/epoberezkin","html_url":"https://github.com/epoberezkin","followers_url":"https://api.github.com/users/epoberezkin/followers","following_url":"https://api.github.com/users/epoberezkin/following{/other_user}","gists_url":"https://api.github.com/users/epoberezkin/gists{/gist_id}","starred_url":"https://api.github.com/users/epoberezkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epoberezkin/subscriptions","organizations_url":"https://api.github.com/users/epoberezkin/orgs","repos_url":"https://api.github.com/users/epoberezkin/repos","events_url":"https://api.github.com/users/epoberezkin/events{/privacy}","received_events_url":"https://api.github.com/users/epoberezkin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/epoberezkin/pg-pubsub","description":"dispatch notifications on db changes","fork":true,"url":"https://api.github.com/repos/epoberezkin/pg-pubsub","forks_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/forks","keys_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/teams","hooks_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/hooks","issue_events_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/issues/events{/number}","events_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/events","assignees_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/assignees{/user}","branches_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/branches{/branch}","tags_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/tags","blobs_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/git/refs{/sha}","trees_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/statuses/{sha}","languages_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/languages","stargazers_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/stargazers","contributors_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/contributors","subscribers_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/subscribers","subscription_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/subscription","commits_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/commits{/sha}","git_commits_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/git/commits{/sha}","comments_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/comments{/number}","issue_comment_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/issues/comments{/number}","contents_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/contents/{+path}","compare_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/merges","archive_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/downloads","issues_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/issues{/number}","pulls_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/pulls{/number}","milestones_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/milestones{/number}","notifications_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/labels{/name}","releases_url":"https://api.github.com/repos/epoberezkin/pg-pubsub/releases{/id}","created_at":"2015-03-01T09:41:21Z","updated_at":"2015-03-01T16:29:33Z","pushed_at":"2015-03-01T16:29:33Z","git_url":"git://github.com/epoberezkin/pg-pubsub.git","ssh_url":"git@github.com:epoberezkin/pg-pubsub.git","clone_url":"https://github.com/epoberezkin/pg-pubsub.git","svn_url":"https://github.com/epoberezkin/pg-pubsub","homepage":"","size":144,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"paulserraino:master","ref":"master","sha":"3d622ffc0a1e2316b99aa9bcad2a92d6ff608fd6","user":{"login":"paulserraino","id":3300063,"avatar_url":"https://avatars.githubusercontent.com/u/3300063?v=3","gravatar_id":"","url":"https://api.github.com/users/paulserraino","html_url":"https://github.com/paulserraino","followers_url":"https://api.github.com/users/paulserraino/followers","following_url":"https://api.github.com/users/paulserraino/following{/other_user}","gists_url":"https://api.github.com/users/paulserraino/gists{/gist_id}","starred_url":"https://api.github.com/users/paulserraino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulserraino/subscriptions","organizations_url":"https://api.github.com/users/paulserraino/orgs","repos_url":"https://api.github.com/users/paulserraino/repos","events_url":"https://api.github.com/users/paulserraino/events{/privacy}","received_events_url":"https://api.github.com/users/paulserraino/received_events","type":"User","site_admin":false},"repo":{"id":30836615,"name":"pg-pubsub","full_name":"paulserraino/pg-pubsub","owner":{"login":"paulserraino","id":3300063,"avatar_url":"https://avatars.githubusercontent.com/u/3300063?v=3","gravatar_id":"","url":"https://api.github.com/users/paulserraino","html_url":"https://github.com/paulserraino","followers_url":"https://api.github.com/users/paulserraino/followers","following_url":"https://api.github.com/users/paulserraino/following{/other_user}","gists_url":"https://api.github.com/users/paulserraino/gists{/gist_id}","starred_url":"https://api.github.com/users/paulserraino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulserraino/subscriptions","organizations_url":"https://api.github.com/users/paulserraino/orgs","repos_url":"https://api.github.com/users/paulserraino/repos","events_url":"https://api.github.com/users/paulserraino/events{/privacy}","received_events_url":"https://api.github.com/users/paulserraino/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulserraino/pg-pubsub","description":"dispatch notifications on db changes","fork":false,"url":"https://api.github.com/repos/paulserraino/pg-pubsub","forks_url":"https://api.github.com/repos/paulserraino/pg-pubsub/forks","keys_url":"https://api.github.com/repos/paulserraino/pg-pubsub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulserraino/pg-pubsub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulserraino/pg-pubsub/teams","hooks_url":"https://api.github.com/repos/paulserraino/pg-pubsub/hooks","issue_events_url":"https://api.github.com/repos/paulserraino/pg-pubsub/issues/events{/number}","events_url":"https://api.github.com/repos/paulserraino/pg-pubsub/events","assignees_url":"https://api.github.com/repos/paulserraino/pg-pubsub/assignees{/user}","branches_url":"https://api.github.com/repos/paulserraino/pg-pubsub/branches{/branch}","tags_url":"https://api.github.com/repos/paulserraino/pg-pubsub/tags","blobs_url":"https://api.github.com/repos/paulserraino/pg-pubsub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulserraino/pg-pubsub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulserraino/pg-pubsub/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulserraino/pg-pubsub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulserraino/pg-pubsub/statuses/{sha}","languages_url":"https://api.github.com/repos/paulserraino/pg-pubsub/languages","stargazers_url":"https://api.github.com/repos/paulserraino/pg-pubsub/stargazers","contributors_url":"https://api.github.com/repos/paulserraino/pg-pubsub/contributors","subscribers_url":"https://api.github.com/repos/paulserraino/pg-pubsub/subscribers","subscription_url":"https://api.github.com/repos/paulserraino/pg-pubsub/subscription","commits_url":"https://api.github.com/repos/paulserraino/pg-pubsub/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulserraino/pg-pubsub/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulserraino/pg-pubsub/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulserraino/pg-pubsub/issues/comments{/number}","contents_url":"https://api.github.com/repos/paulserraino/pg-pubsub/contents/{+path}","compare_url":"https://api.github.com/repos/paulserraino/pg-pubsub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulserraino/pg-pubsub/merges","archive_url":"https://api.github.com/repos/paulserraino/pg-pubsub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulserraino/pg-pubsub/downloads","issues_url":"https://api.github.com/repos/paulserraino/pg-pubsub/issues{/number}","pulls_url":"https://api.github.com/repos/paulserraino/pg-pubsub/pulls{/number}","milestones_url":"https://api.github.com/repos/paulserraino/pg-pubsub/milestones{/number}","notifications_url":"https://api.github.com/repos/paulserraino/pg-pubsub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulserraino/pg-pubsub/labels{/name}","releases_url":"https://api.github.com/repos/paulserraino/pg-pubsub/releases{/id}","created_at":"2015-02-15T18:17:58Z","updated_at":"2015-02-28T20:48:40Z","pushed_at":"2015-02-16T01:16:28Z","git_url":"git://github.com/paulserraino/pg-pubsub.git","ssh_url":"git@github.com:paulserraino/pg-pubsub.git","clone_url":"https://github.com/paulserraino/pg-pubsub.git","svn_url":"https://github.com/paulserraino/pg-pubsub","homepage":"","size":144,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paulserraino/pg-pubsub/pulls/2"},"html":{"href":"https://github.com/paulserraino/pg-pubsub/pull/2"},"issue":{"href":"https://api.github.com/repos/paulserraino/pg-pubsub/issues/2"},"comments":{"href":"https://api.github.com/repos/paulserraino/pg-pubsub/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/paulserraino/pg-pubsub/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/paulserraino/pg-pubsub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paulserraino/pg-pubsub/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/paulserraino/pg-pubsub/statuses/5718fe6b3ba7653edb0b2b9e52e619dd39b86dd0"}}}}