{"action":"created","comment":{"url":"https://api.github.com/repos/marmelab/coPostgresQuery/pulls/comments/67145254","id":67145254,"diff_hunk":"@@ -179,12 +179,24 @@ Allow to create a query to update one entity or create it if it does not already\n \n ###batchUpsert(table, selectorFields, updatableFields, returnFields)(db)(entities)\n Allow to create a query to update a batch entity creating those that does not already exists.\n-####parameters\n+####configuration\n  - table: the name of the table in which to upsert\n  - selectorFields: the field used to select one entity checking if it exists\n  - updatableFields: the field that can be updated\n  - returnFields: the field to return in the result\n  - fields: all the fields accepted by the query, default to selectorFields + updatableFields (no reason to change that)\n+####parameters\n+- entities: array of entities to upsert\n+\n+###selectByFieldValues(table, selectorField, returnFields)(db)(values)\n+Allow to create a query to select ann entity with selectorField IN values and keep the ORDER of values.","path":"README.md","position":15,"original_position":15,"commit_id":"41338fcf569cde0ddbae8e07199d1be0a02a6270","original_commit_id":"41338fcf569cde0ddbae8e07199d1be0a02a6270","user":{"login":"alexisjanvier","id":547706,"avatar_url":"https://avatars.githubusercontent.com/u/547706?v=3","gravatar_id":"","url":"https://api.github.com/users/alexisjanvier","html_url":"https://github.com/alexisjanvier","followers_url":"https://api.github.com/users/alexisjanvier/followers","following_url":"https://api.github.com/users/alexisjanvier/following{/other_user}","gists_url":"https://api.github.com/users/alexisjanvier/gists{/gist_id}","starred_url":"https://api.github.com/users/alexisjanvier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexisjanvier/subscriptions","organizations_url":"https://api.github.com/users/alexisjanvier/orgs","repos_url":"https://api.github.com/users/alexisjanvier/repos","events_url":"https://api.github.com/users/alexisjanvier/events{/privacy}","received_events_url":"https://api.github.com/users/alexisjanvier/received_events","type":"User","site_admin":false},"body":"s/ann/an/","created_at":"2016-06-15T11:35:28Z","updated_at":"2016-06-15T11:35:28Z","html_url":"https://github.com/marmelab/coPostgresQuery/pull/2#discussion_r67145254","pull_request_url":"https://api.github.com/repos/marmelab/coPostgresQuery/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/marmelab/coPostgresQuery/pulls/comments/67145254"},"html":{"href":"https://github.com/marmelab/coPostgresQuery/pull/2#discussion_r67145254"},"pull_request":{"href":"https://api.github.com/repos/marmelab/coPostgresQuery/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/marmelab/coPostgresQuery/pulls/2","id":73240306,"html_url":"https://github.com/marmelab/coPostgresQuery/pull/2","diff_url":"https://github.com/marmelab/coPostgresQuery/pull/2.diff","patch_url":"https://github.com/marmelab/coPostgresQuery/pull/2.patch","issue_url":"https://api.github.com/repos/marmelab/coPostgresQuery/issues/2","number":2,"state":"open","locked":false,"title":"[RFR]Select by field values","user":{"login":"ThieryMichel","id":4034399,"avatar_url":"https://avatars.githubusercontent.com/u/4034399?v=3","gravatar_id":"","url":"https://api.github.com/users/ThieryMichel","html_url":"https://github.com/ThieryMichel","followers_url":"https://api.github.com/users/ThieryMichel/followers","following_url":"https://api.github.com/users/ThieryMichel/following{/other_user}","gists_url":"https://api.github.com/users/ThieryMichel/gists{/gist_id}","starred_url":"https://api.github.com/users/ThieryMichel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThieryMichel/subscriptions","organizations_url":"https://api.github.com/users/ThieryMichel/orgs","repos_url":"https://api.github.com/users/ThieryMichel/repos","events_url":"https://api.github.com/users/ThieryMichel/events{/privacy}","received_events_url":"https://api.github.com/users/ThieryMichel/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-09T15:58:08Z","updated_at":"2016-06-15T11:35:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ba99fc7194664741a304eec38945d588dcc6cbb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/marmelab/coPostgresQuery/pulls/2/commits","review_comments_url":"https://api.github.com/repos/marmelab/coPostgresQuery/pulls/2/comments","review_comment_url":"https://api.github.com/repos/marmelab/coPostgresQuery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/marmelab/coPostgresQuery/issues/2/comments","statuses_url":"https://api.github.com/repos/marmelab/coPostgresQuery/statuses/41338fcf569cde0ddbae8e07199d1be0a02a6270","head":{"label":"marmelab:selectByFieldValues","ref":"selectByFieldValues","sha":"41338fcf569cde0ddbae8e07199d1be0a02a6270","user":{"login":"marmelab","id":3116319,"avatar_url":"https://avatars.githubusercontent.com/u/3116319?v=3","gravatar_id":"","url":"https://api.github.com/users/marmelab","html_url":"https://github.com/marmelab","followers_url":"https://api.github.com/users/marmelab/followers","following_url":"https://api.github.com/users/marmelab/following{/other_user}","gists_url":"https://api.github.com/users/marmelab/gists{/gist_id}","starred_url":"https://api.github.com/users/marmelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmelab/subscriptions","organizations_url":"https://api.github.com/users/marmelab/orgs","repos_url":"https://api.github.com/users/marmelab/repos","events_url":"https://api.github.com/users/marmelab/events{/privacy}","received_events_url":"https://api.github.com/users/marmelab/received_events","type":"Organization","site_admin":false},"repo":{"id":43151276,"name":"coPostgresQuery","full_name":"marmelab/coPostgresQuery","owner":{"login":"marmelab","id":3116319,"avatar_url":"https://avatars.githubusercontent.com/u/3116319?v=3","gravatar_id":"","url":"https://api.github.com/users/marmelab","html_url":"https://github.com/marmelab","followers_url":"https://api.github.com/users/marmelab/followers","following_url":"https://api.github.com/users/marmelab/following{/other_user}","gists_url":"https://api.github.com/users/marmelab/gists{/gist_id}","starred_url":"https://api.github.com/users/marmelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmelab/subscriptions","organizations_url":"https://api.github.com/users/marmelab/orgs","repos_url":"https://api.github.com/users/marmelab/repos","events_url":"https://api.github.com/users/marmelab/events{/privacy}","received_events_url":"https://api.github.com/users/marmelab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/marmelab/coPostgresQuery","description":"","fork":false,"url":"https://api.github.com/repos/marmelab/coPostgresQuery","forks_url":"https://api.github.com/repos/marmelab/coPostgresQuery/forks","keys_url":"https://api.github.com/repos/marmelab/coPostgresQuery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marmelab/coPostgresQuery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marmelab/coPostgresQuery/teams","hooks_url":"https://api.github.com/repos/marmelab/coPostgresQuery/hooks","issue_events_url":"https://api.github.com/repos/marmelab/coPostgresQuery/issues/events{/number}","events_url":"https://api.github.com/repos/marmelab/coPostgresQuery/events","assignees_url":"https://api.github.com/repos/marmelab/coPostgresQuery/assignees{/user}","branches_url":"https://api.github.com/repos/marmelab/coPostgresQuery/branches{/branch}","tags_url":"https://api.github.com/repos/marmelab/coPostgresQuery/tags","blobs_url":"https://api.github.com/repos/marmelab/coPostgresQuery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marmelab/coPostgresQuery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marmelab/coPostgresQuery/git/refs{/sha}","trees_url":"https://api.github.com/repos/marmelab/coPostgresQuery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marmelab/coPostgresQuery/statuses/{sha}","languages_url":"https://api.github.com/repos/marmelab/coPostgresQuery/languages","stargazers_url":"https://api.github.com/repos/marmelab/coPostgresQuery/stargazers","contributors_url":"https://api.github.com/repos/marmelab/coPostgresQuery/contributors","subscribers_url":"https://api.github.com/repos/marmelab/coPostgresQuery/subscribers","subscription_url":"https://api.github.com/repos/marmelab/coPostgresQuery/subscription","commits_url":"https://api.github.com/repos/marmelab/coPostgresQuery/commits{/sha}","git_commits_url":"https://api.github.com/repos/marmelab/coPostgresQuery/git/commits{/sha}","comments_url":"https://api.github.com/repos/marmelab/coPostgresQuery/comments{/number}","issue_comment_url":"https://api.github.com/repos/marmelab/coPostgresQuery/issues/comments{/number}","contents_url":"https://api.github.com/repos/marmelab/coPostgresQuery/contents/{+path}","compare_url":"https://api.github.com/repos/marmelab/coPostgresQuery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marmelab/coPostgresQuery/merges","archive_url":"https://api.github.com/repos/marmelab/coPostgresQuery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marmelab/coPostgresQuery/downloads","issues_url":"https://api.github.com/repos/marmelab/coPostgresQuery/issues{/number}","pulls_url":"https://api.github.com/repos/marmelab/coPostgresQuery/pulls{/number}","milestones_url":"https://api.github.com/repos/marmelab/coPostgresQuery/milestones{/number}","notifications_url":"https://api.github.com/repos/marmelab/coPostgresQuery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marmelab/coPostgresQuery/labels{/name}","releases_url":"https://api.github.com/repos/marmelab/coPostgresQuery/releases{/id}","deployments_url":"https://api.github.com/repos/marmelab/coPostgresQuery/deployments","created_at":"2015-09-25T14:49:39Z","updated_at":"2016-02-12T15:52:26Z","pushed_at":"2016-06-13T12:55:41Z","git_url":"git://github.com/marmelab/coPostgresQuery.git","ssh_url":"git@github.com:marmelab/coPostgresQuery.git","clone_url":"https://github.com/marmelab/coPostgresQuery.git","svn_url":"https://github.com/marmelab/coPostgresQuery","homepage":null,"size":121,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"marmelab:master","ref":"master","sha":"c18dd0089851086ecb555a3e3f14a20cf60cf358","user":{"login":"marmelab","id":3116319,"avatar_url":"https://avatars.githubusercontent.com/u/3116319?v=3","gravatar_id":"","url":"https://api.github.com/users/marmelab","html_url":"https://github.com/marmelab","followers_url":"https://api.github.com/users/marmelab/followers","following_url":"https://api.github.com/users/marmelab/following{/other_user}","gists_url":"https://api.github.com/users/marmelab/gists{/gist_id}","starred_url":"https://api.github.com/users/marmelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmelab/subscriptions","organizations_url":"https://api.github.com/users/marmelab/orgs","repos_url":"https://api.github.com/users/marmelab/repos","events_url":"https://api.github.com/users/marmelab/events{/privacy}","received_events_url":"https://api.github.com/users/marmelab/received_events","type":"Organization","site_admin":false},"repo":{"id":43151276,"name":"coPostgresQuery","full_name":"marmelab/coPostgresQuery","owner":{"login":"marmelab","id":3116319,"avatar_url":"https://avatars.githubusercontent.com/u/3116319?v=3","gravatar_id":"","url":"https://api.github.com/users/marmelab","html_url":"https://github.com/marmelab","followers_url":"https://api.github.com/users/marmelab/followers","following_url":"https://api.github.com/users/marmelab/following{/other_user}","gists_url":"https://api.github.com/users/marmelab/gists{/gist_id}","starred_url":"https://api.github.com/users/marmelab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marmelab/subscriptions","organizations_url":"https://api.github.com/users/marmelab/orgs","repos_url":"https://api.github.com/users/marmelab/repos","events_url":"https://api.github.com/users/marmelab/events{/privacy}","received_events_url":"https://api.github.com/users/marmelab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/marmelab/coPostgresQuery","description":"","fork":false,"url":"https://api.github.com/repos/marmelab/coPostgresQuery","forks_url":"https://api.github.com/repos/marmelab/coPostgresQuery/forks","keys_url":"https://api.github.com/repos/marmelab/coPostgresQuery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marmelab/coPostgresQuery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marmelab/coPostgresQuery/teams","hooks_url":"https://api.github.com/repos/marmelab/coPostgresQuery/hooks","issue_events_url":"https://api.github.com/repos/marmelab/coPostgresQuery/issues/events{/number}","events_url":"https://api.github.com/repos/marmelab/coPostgresQuery/events","assignees_url":"https://api.github.com/repos/marmelab/coPostgresQuery/assignees{/user}","branches_url":"https://api.github.com/repos/marmelab/coPostgresQuery/branches{/branch}","tags_url":"https://api.github.com/repos/marmelab/coPostgresQuery/tags","blobs_url":"https://api.github.com/repos/marmelab/coPostgresQuery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marmelab/coPostgresQuery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marmelab/coPostgresQuery/git/refs{/sha}","trees_url":"https://api.github.com/repos/marmelab/coPostgresQuery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marmelab/coPostgresQuery/statuses/{sha}","languages_url":"https://api.github.com/repos/marmelab/coPostgresQuery/languages","stargazers_url":"https://api.github.com/repos/marmelab/coPostgresQuery/stargazers","contributors_url":"https://api.github.com/repos/marmelab/coPostgresQuery/contributors","subscribers_url":"https://api.github.com/repos/marmelab/coPostgresQuery/subscribers","subscription_url":"https://api.github.com/repos/marmelab/coPostgresQuery/subscription","commits_url":"https://api.github.com/repos/marmelab/coPostgresQuery/commits{/sha}","git_commits_url":"https://api.github.com/repos/marmelab/coPostgresQuery/git/commits{/sha}","comments_url":"https://api.github.com/repos/marmelab/coPostgresQuery/comments{/number}","issue_comment_url":"https://api.github.com/repos/marmelab/coPostgresQuery/issues/comments{/number}","contents_url":"https://api.github.com/repos/marmelab/coPostgresQuery/contents/{+path}","compare_url":"https://api.github.com/repos/marmelab/coPostgresQuery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marmelab/coPostgresQuery/merges","archive_url":"https://api.github.com/repos/marmelab/coPostgresQuery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marmelab/coPostgresQuery/downloads","issues_url":"https://api.github.com/repos/marmelab/coPostgresQuery/issues{/number}","pulls_url":"https://api.github.com/repos/marmelab/coPostgresQuery/pulls{/number}","milestones_url":"https://api.github.com/repos/marmelab/coPostgresQuery/milestones{/number}","notifications_url":"https://api.github.com/repos/marmelab/coPostgresQuery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marmelab/coPostgresQuery/labels{/name}","releases_url":"https://api.github.com/repos/marmelab/coPostgresQuery/releases{/id}","deployments_url":"https://api.github.com/repos/marmelab/coPostgresQuery/deployments","created_at":"2015-09-25T14:49:39Z","updated_at":"2016-02-12T15:52:26Z","pushed_at":"2016-06-13T12:55:41Z","git_url":"git://github.com/marmelab/coPostgresQuery.git","ssh_url":"git@github.com:marmelab/coPostgresQuery.git","clone_url":"https://github.com/marmelab/coPostgresQuery.git","svn_url":"https://github.com/marmelab/coPostgresQuery","homepage":null,"size":121,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/marmelab/coPostgresQuery/pulls/2"},"html":{"href":"https://github.com/marmelab/coPostgresQuery/pull/2"},"issue":{"href":"https://api.github.com/repos/marmelab/coPostgresQuery/issues/2"},"comments":{"href":"https://api.github.com/repos/marmelab/coPostgresQuery/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/marmelab/coPostgresQuery/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/marmelab/coPostgresQuery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/marmelab/coPostgresQuery/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/marmelab/coPostgresQuery/statuses/41338fcf569cde0ddbae8e07199d1be0a02a6270"}}}}
{"actor":{"display_login":"alexisjanvier"}}