{"action":"opened","number":268,"pull_request":{"url":"https://api.github.com/repos/google/cayley/pulls/268","id":36779304,"html_url":"https://github.com/google/cayley/pull/268","diff_url":"https://github.com/google/cayley/pull/268.diff","patch_url":"https://github.com/google/cayley/pull/268.patch","issue_url":"https://api.github.com/repos/google/cayley/issues/268","number":268,"state":"open","locked":false,"title":"Allow opening a database (bolt, leveldb, mongo) through Go API","user":{"login":"Quentin-M","id":1332289,"avatar_url":"https://avatars.githubusercontent.com/u/1332289?v=3","gravatar_id":"","url":"https://api.github.com/users/Quentin-M","html_url":"https://github.com/Quentin-M","followers_url":"https://api.github.com/users/Quentin-M/followers","following_url":"https://api.github.com/users/Quentin-M/following{/other_user}","gists_url":"https://api.github.com/users/Quentin-M/gists{/gist_id}","starred_url":"https://api.github.com/users/Quentin-M/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quentin-M/subscriptions","organizations_url":"https://api.github.com/users/Quentin-M/orgs","repos_url":"https://api.github.com/users/Quentin-M/repos","events_url":"https://api.github.com/users/Quentin-M/events{/privacy}","received_events_url":"https://api.github.com/users/Quentin-M/received_events","type":"User","site_admin":false},"body":"This small PR allows opening a database through Go code (#208)\r\n\r\n**Usage Example**\r\n```\r\npackage main\r\n\r\nimport \"github.com/google/cayley\"\r\n\r\nstore, err := cayley.NewGraph(\"bolt\", \"/home/mentalow/mexican_coke_db\", nil)\r\nif err != nil {\r\n\tlog.Fatalln(err)\r\n}\r\n```\r\n\r\n(CLA Accepted)","created_at":"2015-06-02T22:02:28Z","updated_at":"2015-06-02T22:02:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/google/cayley/pulls/268/commits","review_comments_url":"https://api.github.com/repos/google/cayley/pulls/268/comments","review_comment_url":"https://api.github.com/repos/google/cayley/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/cayley/issues/268/comments","statuses_url":"https://api.github.com/repos/google/cayley/statuses/3b58ae999465bc124b290803708926b2681e2199","head":{"label":"Quentin-M:openGoApi","ref":"openGoApi","sha":"3b58ae999465bc124b290803708926b2681e2199","user":{"login":"Quentin-M","id":1332289,"avatar_url":"https://avatars.githubusercontent.com/u/1332289?v=3","gravatar_id":"","url":"https://api.github.com/users/Quentin-M","html_url":"https://github.com/Quentin-M","followers_url":"https://api.github.com/users/Quentin-M/followers","following_url":"https://api.github.com/users/Quentin-M/following{/other_user}","gists_url":"https://api.github.com/users/Quentin-M/gists{/gist_id}","starred_url":"https://api.github.com/users/Quentin-M/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quentin-M/subscriptions","organizations_url":"https://api.github.com/users/Quentin-M/orgs","repos_url":"https://api.github.com/users/Quentin-M/repos","events_url":"https://api.github.com/users/Quentin-M/events{/privacy}","received_events_url":"https://api.github.com/users/Quentin-M/received_events","type":"User","site_admin":false},"repo":{"id":36541084,"name":"cayley","full_name":"Quentin-M/cayley","owner":{"login":"Quentin-M","id":1332289,"avatar_url":"https://avatars.githubusercontent.com/u/1332289?v=3","gravatar_id":"","url":"https://api.github.com/users/Quentin-M","html_url":"https://github.com/Quentin-M","followers_url":"https://api.github.com/users/Quentin-M/followers","following_url":"https://api.github.com/users/Quentin-M/following{/other_user}","gists_url":"https://api.github.com/users/Quentin-M/gists{/gist_id}","starred_url":"https://api.github.com/users/Quentin-M/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quentin-M/subscriptions","organizations_url":"https://api.github.com/users/Quentin-M/orgs","repos_url":"https://api.github.com/users/Quentin-M/repos","events_url":"https://api.github.com/users/Quentin-M/events{/privacy}","received_events_url":"https://api.github.com/users/Quentin-M/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Quentin-M/cayley","description":"An open-source graph database","fork":true,"url":"https://api.github.com/repos/Quentin-M/cayley","forks_url":"https://api.github.com/repos/Quentin-M/cayley/forks","keys_url":"https://api.github.com/repos/Quentin-M/cayley/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Quentin-M/cayley/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Quentin-M/cayley/teams","hooks_url":"https://api.github.com/repos/Quentin-M/cayley/hooks","issue_events_url":"https://api.github.com/repos/Quentin-M/cayley/issues/events{/number}","events_url":"https://api.github.com/repos/Quentin-M/cayley/events","assignees_url":"https://api.github.com/repos/Quentin-M/cayley/assignees{/user}","branches_url":"https://api.github.com/repos/Quentin-M/cayley/branches{/branch}","tags_url":"https://api.github.com/repos/Quentin-M/cayley/tags","blobs_url":"https://api.github.com/repos/Quentin-M/cayley/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Quentin-M/cayley/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Quentin-M/cayley/git/refs{/sha}","trees_url":"https://api.github.com/repos/Quentin-M/cayley/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Quentin-M/cayley/statuses/{sha}","languages_url":"https://api.github.com/repos/Quentin-M/cayley/languages","stargazers_url":"https://api.github.com/repos/Quentin-M/cayley/stargazers","contributors_url":"https://api.github.com/repos/Quentin-M/cayley/contributors","subscribers_url":"https://api.github.com/repos/Quentin-M/cayley/subscribers","subscription_url":"https://api.github.com/repos/Quentin-M/cayley/subscription","commits_url":"https://api.github.com/repos/Quentin-M/cayley/commits{/sha}","git_commits_url":"https://api.github.com/repos/Quentin-M/cayley/git/commits{/sha}","comments_url":"https://api.github.com/repos/Quentin-M/cayley/comments{/number}","issue_comment_url":"https://api.github.com/repos/Quentin-M/cayley/issues/comments{/number}","contents_url":"https://api.github.com/repos/Quentin-M/cayley/contents/{+path}","compare_url":"https://api.github.com/repos/Quentin-M/cayley/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Quentin-M/cayley/merges","archive_url":"https://api.github.com/repos/Quentin-M/cayley/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Quentin-M/cayley/downloads","issues_url":"https://api.github.com/repos/Quentin-M/cayley/issues{/number}","pulls_url":"https://api.github.com/repos/Quentin-M/cayley/pulls{/number}","milestones_url":"https://api.github.com/repos/Quentin-M/cayley/milestones{/number}","notifications_url":"https://api.github.com/repos/Quentin-M/cayley/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Quentin-M/cayley/labels{/name}","releases_url":"https://api.github.com/repos/Quentin-M/cayley/releases{/id}","created_at":"2015-05-30T03:16:45Z","updated_at":"2015-05-30T03:16:46Z","pushed_at":"2015-06-02T22:01:39Z","git_url":"git://github.com/Quentin-M/cayley.git","ssh_url":"git@github.com:Quentin-M/cayley.git","clone_url":"https://github.com/Quentin-M/cayley.git","svn_url":"https://github.com/Quentin-M/cayley","homepage":"","size":16655,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"google:master","ref":"master","sha":"c2e410dd2c313def127d1763720df1d6f18c39c5","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":20537104,"name":"cayley","full_name":"google/cayley","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/cayley","description":"An open-source graph database","fork":false,"url":"https://api.github.com/repos/google/cayley","forks_url":"https://api.github.com/repos/google/cayley/forks","keys_url":"https://api.github.com/repos/google/cayley/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/cayley/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/cayley/teams","hooks_url":"https://api.github.com/repos/google/cayley/hooks","issue_events_url":"https://api.github.com/repos/google/cayley/issues/events{/number}","events_url":"https://api.github.com/repos/google/cayley/events","assignees_url":"https://api.github.com/repos/google/cayley/assignees{/user}","branches_url":"https://api.github.com/repos/google/cayley/branches{/branch}","tags_url":"https://api.github.com/repos/google/cayley/tags","blobs_url":"https://api.github.com/repos/google/cayley/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/cayley/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/cayley/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/cayley/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/cayley/statuses/{sha}","languages_url":"https://api.github.com/repos/google/cayley/languages","stargazers_url":"https://api.github.com/repos/google/cayley/stargazers","contributors_url":"https://api.github.com/repos/google/cayley/contributors","subscribers_url":"https://api.github.com/repos/google/cayley/subscribers","subscription_url":"https://api.github.com/repos/google/cayley/subscription","commits_url":"https://api.github.com/repos/google/cayley/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/cayley/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/cayley/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/cayley/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/cayley/contents/{+path}","compare_url":"https://api.github.com/repos/google/cayley/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/cayley/merges","archive_url":"https://api.github.com/repos/google/cayley/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/cayley/downloads","issues_url":"https://api.github.com/repos/google/cayley/issues{/number}","pulls_url":"https://api.github.com/repos/google/cayley/pulls{/number}","milestones_url":"https://api.github.com/repos/google/cayley/milestones{/number}","notifications_url":"https://api.github.com/repos/google/cayley/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/cayley/labels{/name}","releases_url":"https://api.github.com/repos/google/cayley/releases{/id}","created_at":"2014-06-05T18:49:41Z","updated_at":"2015-06-02T15:14:00Z","pushed_at":"2015-06-02T21:55:01Z","git_url":"git://github.com/google/cayley.git","ssh_url":"git@github.com:google/cayley.git","clone_url":"https://github.com/google/cayley.git","svn_url":"https://github.com/google/cayley","homepage":"","size":23689,"stargazers_count":5686,"watchers_count":5686,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":451,"mirror_url":null,"open_issues_count":84,"forks":451,"open_issues":84,"watchers":5686,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/cayley/pulls/268"},"html":{"href":"https://github.com/google/cayley/pull/268"},"issue":{"href":"https://api.github.com/repos/google/cayley/issues/268"},"comments":{"href":"https://api.github.com/repos/google/cayley/issues/268/comments"},"review_comments":{"href":"https://api.github.com/repos/google/cayley/pulls/268/comments"},"review_comment":{"href":"https://api.github.com/repos/google/cayley/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/cayley/pulls/268/commits"},"statuses":{"href":"https://api.github.com/repos/google/cayley/statuses/3b58ae999465bc124b290803708926b2681e2199"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":2,"changed_files":1}}