{"action":"created","comment":{"url":"https://api.github.com/repos/thijsc/mongo-rust-driver/pulls/comments/185326826","pull_request_review_id":116693238,"id":185326826,"diff_hunk":"@@ -189,6 +220,31 @@ impl<'a> Database<'a> {\n         };\n         String::from_utf8_lossy(cstr.to_bytes())\n     }\n+\n+    /// Create a new collection in this database.\n+    pub fn has_collection<S: Into<Vec<u8>>>(","path":"src/database.rs","position":76,"original_position":76,"commit_id":"f6a4cefb64825a5cba4e3805675199f507d5d7e7","original_commit_id":"0a3f41bb0c33afcc0305527502920d4467e89974","user":{"login":"mjjansen","id":1911018,"avatar_url":"https://avatars0.githubusercontent.com/u/1911018?v=4","gravatar_id":"","url":"https://api.github.com/users/mjjansen","html_url":"https://github.com/mjjansen","followers_url":"https://api.github.com/users/mjjansen/followers","following_url":"https://api.github.com/users/mjjansen/following{/other_user}","gists_url":"https://api.github.com/users/mjjansen/gists{/gist_id}","starred_url":"https://api.github.com/users/mjjansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjjansen/subscriptions","organizations_url":"https://api.github.com/users/mjjansen/orgs","repos_url":"https://api.github.com/users/mjjansen/repos","events_url":"https://api.github.com/users/mjjansen/events{/privacy}","received_events_url":"https://api.github.com/users/mjjansen/received_events","type":"User","site_admin":false},"body":"done","created_at":"2018-05-01T20:36:12Z","updated_at":"2018-05-01T20:36:12Z","html_url":"https://github.com/thijsc/mongo-rust-driver/pull/39#discussion_r185326826","pull_request_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/pulls/39","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/thijsc/mongo-rust-driver/pulls/comments/185326826"},"html":{"href":"https://github.com/thijsc/mongo-rust-driver/pull/39#discussion_r185326826"},"pull_request":{"href":"https://api.github.com/repos/thijsc/mongo-rust-driver/pulls/39"}},"in_reply_to_id":184351323},"pull_request":{"url":"https://api.github.com/repos/thijsc/mongo-rust-driver/pulls/39","id":181994366,"html_url":"https://github.com/thijsc/mongo-rust-driver/pull/39","diff_url":"https://github.com/thijsc/mongo-rust-driver/pull/39.diff","patch_url":"https://github.com/thijsc/mongo-rust-driver/pull/39.patch","issue_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/issues/39","number":39,"state":"open","locked":false,"title":"Added the ability to automatically manage getMore calls","user":{"login":"mjjansen","id":1911018,"avatar_url":"https://avatars0.githubusercontent.com/u/1911018?v=4","gravatar_id":"","url":"https://api.github.com/users/mjjansen","html_url":"https://github.com/mjjansen","followers_url":"https://api.github.com/users/mjjansen/followers","following_url":"https://api.github.com/users/mjjansen/following{/other_user}","gists_url":"https://api.github.com/users/mjjansen/gists{/gist_id}","starred_url":"https://api.github.com/users/mjjansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjjansen/subscriptions","organizations_url":"https://api.github.com/users/mjjansen/orgs","repos_url":"https://api.github.com/users/mjjansen/repos","events_url":"https://api.github.com/users/mjjansen/events{/privacy}","received_events_url":"https://api.github.com/users/mjjansen/received_events","type":"User","site_admin":false},"body":"When using command with find and append you need to call getMore which can be messy.  calling database.command_batch allows you to run:\r\n```rust\r\n        let cur = database.command_batch(doc!{\"find\":TEST_COLLECTION_NAME},None);\r\n        let mut count = 0;\r\n        for doc in cur.unwrap() {\r\n            count += 1;\r\n            println!(\"doc: {:?}\", doc );\r\n        }\r\n```\r\n\r\nalso added db.has_collection and other minor changes","created_at":"2018-04-16T21:32:18Z","updated_at":"2018-05-01T20:36:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b18090fa3a05d84835972b4065ede0a1702972af","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/pulls/39/commits","review_comments_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/pulls/39/comments","review_comment_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/issues/39/comments","statuses_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/statuses/f6a4cefb64825a5cba4e3805675199f507d5d7e7","head":{"label":"MiesJansen:master","ref":"master","sha":"f6a4cefb64825a5cba4e3805675199f507d5d7e7","user":{"login":"MiesJansen","id":18701699,"avatar_url":"https://avatars2.githubusercontent.com/u/18701699?v=4","gravatar_id":"","url":"https://api.github.com/users/MiesJansen","html_url":"https://github.com/MiesJansen","followers_url":"https://api.github.com/users/MiesJansen/followers","following_url":"https://api.github.com/users/MiesJansen/following{/other_user}","gists_url":"https://api.github.com/users/MiesJansen/gists{/gist_id}","starred_url":"https://api.github.com/users/MiesJansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiesJansen/subscriptions","organizations_url":"https://api.github.com/users/MiesJansen/orgs","repos_url":"https://api.github.com/users/MiesJansen/repos","events_url":"https://api.github.com/users/MiesJansen/events{/privacy}","received_events_url":"https://api.github.com/users/MiesJansen/received_events","type":"Organization","site_admin":false},"repo":{"id":126465631,"name":"mongo-rust-driver","full_name":"MiesJansen/mongo-rust-driver","owner":{"login":"MiesJansen","id":18701699,"avatar_url":"https://avatars2.githubusercontent.com/u/18701699?v=4","gravatar_id":"","url":"https://api.github.com/users/MiesJansen","html_url":"https://github.com/MiesJansen","followers_url":"https://api.github.com/users/MiesJansen/followers","following_url":"https://api.github.com/users/MiesJansen/following{/other_user}","gists_url":"https://api.github.com/users/MiesJansen/gists{/gist_id}","starred_url":"https://api.github.com/users/MiesJansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiesJansen/subscriptions","organizations_url":"https://api.github.com/users/MiesJansen/orgs","repos_url":"https://api.github.com/users/MiesJansen/repos","events_url":"https://api.github.com/users/MiesJansen/events{/privacy}","received_events_url":"https://api.github.com/users/MiesJansen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MiesJansen/mongo-rust-driver","description":"Mongo Rust driver built on top of the Mongo C driver","fork":true,"url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver","forks_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/forks","keys_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/teams","hooks_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/hooks","issue_events_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/issues/events{/number}","events_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/events","assignees_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/assignees{/user}","branches_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/branches{/branch}","tags_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/tags","blobs_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/languages","stargazers_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/stargazers","contributors_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/contributors","subscribers_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/subscribers","subscription_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/subscription","commits_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/contents/{+path}","compare_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/merges","archive_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/downloads","issues_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/issues{/number}","pulls_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/labels{/name}","releases_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/releases{/id}","deployments_url":"https://api.github.com/repos/MiesJansen/mongo-rust-driver/deployments","created_at":"2018-03-23T09:52:01Z","updated_at":"2018-05-01T05:16:09Z","pushed_at":"2018-05-01T05:16:07Z","git_url":"git://github.com/MiesJansen/mongo-rust-driver.git","ssh_url":"git@github.com:MiesJansen/mongo-rust-driver.git","clone_url":"https://github.com/MiesJansen/mongo-rust-driver.git","svn_url":"https://github.com/MiesJansen/mongo-rust-driver","homepage":"","size":191,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"thijsc:master","ref":"master","sha":"50b10ad52e68cde6038aa83eb22313950f65b11b","user":{"login":"thijsc","id":9794,"avatar_url":"https://avatars0.githubusercontent.com/u/9794?v=4","gravatar_id":"","url":"https://api.github.com/users/thijsc","html_url":"https://github.com/thijsc","followers_url":"https://api.github.com/users/thijsc/followers","following_url":"https://api.github.com/users/thijsc/following{/other_user}","gists_url":"https://api.github.com/users/thijsc/gists{/gist_id}","starred_url":"https://api.github.com/users/thijsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thijsc/subscriptions","organizations_url":"https://api.github.com/users/thijsc/orgs","repos_url":"https://api.github.com/users/thijsc/repos","events_url":"https://api.github.com/users/thijsc/events{/privacy}","received_events_url":"https://api.github.com/users/thijsc/received_events","type":"User","site_admin":false},"repo":{"id":37942325,"name":"mongo-rust-driver","full_name":"thijsc/mongo-rust-driver","owner":{"login":"thijsc","id":9794,"avatar_url":"https://avatars0.githubusercontent.com/u/9794?v=4","gravatar_id":"","url":"https://api.github.com/users/thijsc","html_url":"https://github.com/thijsc","followers_url":"https://api.github.com/users/thijsc/followers","following_url":"https://api.github.com/users/thijsc/following{/other_user}","gists_url":"https://api.github.com/users/thijsc/gists{/gist_id}","starred_url":"https://api.github.com/users/thijsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thijsc/subscriptions","organizations_url":"https://api.github.com/users/thijsc/orgs","repos_url":"https://api.github.com/users/thijsc/repos","events_url":"https://api.github.com/users/thijsc/events{/privacy}","received_events_url":"https://api.github.com/users/thijsc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thijsc/mongo-rust-driver","description":"Mongo Rust driver built on top of the Mongo C driver","fork":false,"url":"https://api.github.com/repos/thijsc/mongo-rust-driver","forks_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/forks","keys_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/teams","hooks_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/hooks","issue_events_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/issues/events{/number}","events_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/events","assignees_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/assignees{/user}","branches_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/branches{/branch}","tags_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/tags","blobs_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/languages","stargazers_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/stargazers","contributors_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/contributors","subscribers_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/subscribers","subscription_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/subscription","commits_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/contents/{+path}","compare_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/merges","archive_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/downloads","issues_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/issues{/number}","pulls_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/labels{/name}","releases_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/releases{/id}","deployments_url":"https://api.github.com/repos/thijsc/mongo-rust-driver/deployments","created_at":"2015-06-23T20:11:15Z","updated_at":"2018-04-22T13:06:29Z","pushed_at":"2018-05-01T05:16:09Z","git_url":"git://github.com/thijsc/mongo-rust-driver.git","ssh_url":"git@github.com:thijsc/mongo-rust-driver.git","clone_url":"https://github.com/thijsc/mongo-rust-driver.git","svn_url":"https://github.com/thijsc/mongo-rust-driver","homepage":"","size":185,"stargazers_count":53,"watchers_count":53,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":10,"open_issues":3,"watchers":53,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thijsc/mongo-rust-driver/pulls/39"},"html":{"href":"https://github.com/thijsc/mongo-rust-driver/pull/39"},"issue":{"href":"https://api.github.com/repos/thijsc/mongo-rust-driver/issues/39"},"comments":{"href":"https://api.github.com/repos/thijsc/mongo-rust-driver/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/thijsc/mongo-rust-driver/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/thijsc/mongo-rust-driver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thijsc/mongo-rust-driver/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/thijsc/mongo-rust-driver/statuses/f6a4cefb64825a5cba4e3805675199f507d5d7e7"}},"author_association":"NONE"}}
{"actor":{"display_login":"mjjansen"}}