{"action":"created","comment":{"url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/pulls/comments/22524162","id":22524162,"diff_hunk":"@@ -0,0 +1,35 @@\n+'use strict';\n+\n+var _ = require('lodash');\n+\n+/**\n+* Format where expression.\n+*\n+* @param {string[]|string} keys","path":"lib/formatters/where-raw.js","position":8,"original_position":8,"commit_id":"e8e448ac1c589ff798265121ec87e91e978679b5","original_commit_id":"e8e448ac1c589ff798265121ec87e91e978679b5","user":{"login":"eloone","id":1557334,"avatar_url":"https://avatars.githubusercontent.com/u/1557334?v=3","gravatar_id":"","url":"https://api.github.com/users/eloone","html_url":"https://github.com/eloone","followers_url":"https://api.github.com/users/eloone/followers","following_url":"https://api.github.com/users/eloone/following{/other_user}","gists_url":"https://api.github.com/users/eloone/gists{/gist_id}","starred_url":"https://api.github.com/users/eloone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eloone/subscriptions","organizations_url":"https://api.github.com/users/eloone/orgs","repos_url":"https://api.github.com/users/eloone/repos","events_url":"https://api.github.com/users/eloone/events{/privacy}","received_events_url":"https://api.github.com/users/eloone/received_events","type":"User","site_admin":false},"body":"décrire aussi query et jsonkeys dans la doc","created_at":"2015-01-06T14:13:26Z","updated_at":"2015-01-06T14:13:26Z","html_url":"https://github.com/lemonde/middlebot-bookshelf/pull/37#discussion_r22524162","pull_request_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/lemonde/middlebot-bookshelf/pulls/comments/22524162"},"html":{"href":"https://github.com/lemonde/middlebot-bookshelf/pull/37#discussion_r22524162"},"pull_request":{"href":"https://api.github.com/repos/lemonde/middlebot-bookshelf/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/pulls/37","id":26833698,"html_url":"https://github.com/lemonde/middlebot-bookshelf/pull/37","diff_url":"https://github.com/lemonde/middlebot-bookshelf/pull/37.diff","patch_url":"https://github.com/lemonde/middlebot-bookshelf/pull/37.patch","issue_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/issues/37","number":37,"state":"open","locked":false,"title":"Add formatter to json query postgresql","user":{"login":"CaptainJojo","id":1083083,"avatar_url":"https://avatars.githubusercontent.com/u/1083083?v=3","gravatar_id":"","url":"https://api.github.com/users/CaptainJojo","html_url":"https://github.com/CaptainJojo","followers_url":"https://api.github.com/users/CaptainJojo/followers","following_url":"https://api.github.com/users/CaptainJojo/following{/other_user}","gists_url":"https://api.github.com/users/CaptainJojo/gists{/gist_id}","starred_url":"https://api.github.com/users/CaptainJojo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaptainJojo/subscriptions","organizations_url":"https://api.github.com/users/CaptainJojo/orgs","repos_url":"https://api.github.com/users/CaptainJojo/repos","events_url":"https://api.github.com/users/CaptainJojo/events{/privacy}","received_events_url":"https://api.github.com/users/CaptainJojo/received_events","type":"User","site_admin":false},"body":"Nouveau formatter whereRaw qui permet de générer le raw pour faire un where en JSON sur postgresql.\r\n\r\nJe peux pas faire de test sur le findAll car on utilise sqlLite qui ne permet pas de gerer les json.\r\n\r\n\r\n","created_at":"2015-01-05T16:25:57Z","updated_at":"2015-01-06T14:13:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fb945e63ba3830bea39a322f10407332602625c0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/pulls/37/commits","review_comments_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/pulls/37/comments","review_comment_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/pulls/comments/{number}","comments_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/issues/37/comments","statuses_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/statuses/e8e448ac1c589ff798265121ec87e91e978679b5","head":{"label":"lemonde:json-query","ref":"json-query","sha":"e8e448ac1c589ff798265121ec87e91e978679b5","user":{"login":"lemonde","id":1830638,"avatar_url":"https://avatars.githubusercontent.com/u/1830638?v=3","gravatar_id":"","url":"https://api.github.com/users/lemonde","html_url":"https://github.com/lemonde","followers_url":"https://api.github.com/users/lemonde/followers","following_url":"https://api.github.com/users/lemonde/following{/other_user}","gists_url":"https://api.github.com/users/lemonde/gists{/gist_id}","starred_url":"https://api.github.com/users/lemonde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lemonde/subscriptions","organizations_url":"https://api.github.com/users/lemonde/orgs","repos_url":"https://api.github.com/users/lemonde/repos","events_url":"https://api.github.com/users/lemonde/events{/privacy}","received_events_url":"https://api.github.com/users/lemonde/received_events","type":"Organization","site_admin":false},"repo":{"id":19281607,"name":"middlebot-bookshelf","full_name":"lemonde/middlebot-bookshelf","owner":{"login":"lemonde","id":1830638,"avatar_url":"https://avatars.githubusercontent.com/u/1830638?v=3","gravatar_id":"","url":"https://api.github.com/users/lemonde","html_url":"https://github.com/lemonde","followers_url":"https://api.github.com/users/lemonde/followers","following_url":"https://api.github.com/users/lemonde/following{/other_user}","gists_url":"https://api.github.com/users/lemonde/gists{/gist_id}","starred_url":"https://api.github.com/users/lemonde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lemonde/subscriptions","organizations_url":"https://api.github.com/users/lemonde/orgs","repos_url":"https://api.github.com/users/lemonde/repos","events_url":"https://api.github.com/users/lemonde/events{/privacy}","received_events_url":"https://api.github.com/users/lemonde/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lemonde/middlebot-bookshelf","description":"Collection of bookshelf middlewares.","fork":false,"url":"https://api.github.com/repos/lemonde/middlebot-bookshelf","forks_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/forks","keys_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/teams","hooks_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/hooks","issue_events_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/issues/events{/number}","events_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/events","assignees_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/assignees{/user}","branches_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/branches{/branch}","tags_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/tags","blobs_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/git/refs{/sha}","trees_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/statuses/{sha}","languages_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/languages","stargazers_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/stargazers","contributors_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/contributors","subscribers_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/subscribers","subscription_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/subscription","commits_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/commits{/sha}","git_commits_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/git/commits{/sha}","comments_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/comments{/number}","issue_comment_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/issues/comments/{number}","contents_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/contents/{+path}","compare_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/merges","archive_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/downloads","issues_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/issues{/number}","pulls_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/pulls{/number}","milestones_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/milestones{/number}","notifications_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/labels{/name}","releases_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/releases{/id}","created_at":"2014-04-29T15:32:43Z","updated_at":"2014-12-29T14:24:07Z","pushed_at":"2015-01-06T09:42:06Z","git_url":"git://github.com/lemonde/middlebot-bookshelf.git","ssh_url":"git@github.com:lemonde/middlebot-bookshelf.git","clone_url":"https://github.com/lemonde/middlebot-bookshelf.git","svn_url":"https://github.com/lemonde/middlebot-bookshelf","homepage":"","size":1348,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"lemonde:master","ref":"master","sha":"fc6c236f623654812dd81a01cdea802f3c3650e0","user":{"login":"lemonde","id":1830638,"avatar_url":"https://avatars.githubusercontent.com/u/1830638?v=3","gravatar_id":"","url":"https://api.github.com/users/lemonde","html_url":"https://github.com/lemonde","followers_url":"https://api.github.com/users/lemonde/followers","following_url":"https://api.github.com/users/lemonde/following{/other_user}","gists_url":"https://api.github.com/users/lemonde/gists{/gist_id}","starred_url":"https://api.github.com/users/lemonde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lemonde/subscriptions","organizations_url":"https://api.github.com/users/lemonde/orgs","repos_url":"https://api.github.com/users/lemonde/repos","events_url":"https://api.github.com/users/lemonde/events{/privacy}","received_events_url":"https://api.github.com/users/lemonde/received_events","type":"Organization","site_admin":false},"repo":{"id":19281607,"name":"middlebot-bookshelf","full_name":"lemonde/middlebot-bookshelf","owner":{"login":"lemonde","id":1830638,"avatar_url":"https://avatars.githubusercontent.com/u/1830638?v=3","gravatar_id":"","url":"https://api.github.com/users/lemonde","html_url":"https://github.com/lemonde","followers_url":"https://api.github.com/users/lemonde/followers","following_url":"https://api.github.com/users/lemonde/following{/other_user}","gists_url":"https://api.github.com/users/lemonde/gists{/gist_id}","starred_url":"https://api.github.com/users/lemonde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lemonde/subscriptions","organizations_url":"https://api.github.com/users/lemonde/orgs","repos_url":"https://api.github.com/users/lemonde/repos","events_url":"https://api.github.com/users/lemonde/events{/privacy}","received_events_url":"https://api.github.com/users/lemonde/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lemonde/middlebot-bookshelf","description":"Collection of bookshelf middlewares.","fork":false,"url":"https://api.github.com/repos/lemonde/middlebot-bookshelf","forks_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/forks","keys_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/teams","hooks_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/hooks","issue_events_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/issues/events{/number}","events_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/events","assignees_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/assignees{/user}","branches_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/branches{/branch}","tags_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/tags","blobs_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/git/refs{/sha}","trees_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/statuses/{sha}","languages_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/languages","stargazers_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/stargazers","contributors_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/contributors","subscribers_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/subscribers","subscription_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/subscription","commits_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/commits{/sha}","git_commits_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/git/commits{/sha}","comments_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/comments{/number}","issue_comment_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/issues/comments/{number}","contents_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/contents/{+path}","compare_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/merges","archive_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/downloads","issues_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/issues{/number}","pulls_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/pulls{/number}","milestones_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/milestones{/number}","notifications_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/labels{/name}","releases_url":"https://api.github.com/repos/lemonde/middlebot-bookshelf/releases{/id}","created_at":"2014-04-29T15:32:43Z","updated_at":"2014-12-29T14:24:07Z","pushed_at":"2015-01-06T09:42:06Z","git_url":"git://github.com/lemonde/middlebot-bookshelf.git","ssh_url":"git@github.com:lemonde/middlebot-bookshelf.git","clone_url":"https://github.com/lemonde/middlebot-bookshelf.git","svn_url":"https://github.com/lemonde/middlebot-bookshelf","homepage":"","size":1348,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lemonde/middlebot-bookshelf/pulls/37"},"html":{"href":"https://github.com/lemonde/middlebot-bookshelf/pull/37"},"issue":{"href":"https://api.github.com/repos/lemonde/middlebot-bookshelf/issues/37"},"comments":{"href":"https://api.github.com/repos/lemonde/middlebot-bookshelf/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/lemonde/middlebot-bookshelf/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/lemonde/middlebot-bookshelf/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/lemonde/middlebot-bookshelf/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/lemonde/middlebot-bookshelf/statuses/e8e448ac1c589ff798265121ec87e91e978679b5"}}}}