{"action":"created","comment":{"url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/pulls/comments/39926753","id":39926753,"diff_hunk":"@@ -85,7 +87,7 @@ use constant MAX_OPEN_FDS => eval { use POSIX qw( sysconf _SC_OPEN_MAX ); syscon\n \n our $VERSION = '0.06';\n \n-our %SCHEMA_DATABASE = (postgresql => 'postgres', mysql => 'mysql');\n+our %SCHEMA_DATABASE = (pg => 'postgres', mysql => 'mysql');","path":"lib/DBIx/TempDB.pm","position":17,"original_position":17,"commit_id":"788e31ae923bfda5b422ed125e651ca773b066ba","original_commit_id":"788e31ae923bfda5b422ed125e651ca773b066ba","user":{"login":"Grinnz","id":5769356,"avatar_url":"https://avatars.githubusercontent.com/u/5769356?v=3","gravatar_id":"","url":"https://api.github.com/users/Grinnz","html_url":"https://github.com/Grinnz","followers_url":"https://api.github.com/users/Grinnz/followers","following_url":"https://api.github.com/users/Grinnz/following{/other_user}","gists_url":"https://api.github.com/users/Grinnz/gists{/gist_id}","starred_url":"https://api.github.com/users/Grinnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Grinnz/subscriptions","organizations_url":"https://api.github.com/users/Grinnz/orgs","repos_url":"https://api.github.com/users/Grinnz/repos","events_url":"https://api.github.com/users/Grinnz/events{/privacy}","received_events_url":"https://api.github.com/users/Grinnz/received_events","type":"User","site_admin":false},"body":"The canonical_engine method from the URI::db will always return \"pg\" for any postgresql scheme.","created_at":"2015-09-20T05:15:37Z","updated_at":"2015-09-20T05:15:37Z","html_url":"https://github.com/jhthorsen/dbix-tempdb/pull/4#discussion_r39926753","pull_request_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/jhthorsen/dbix-tempdb/pulls/comments/39926753"},"html":{"href":"https://github.com/jhthorsen/dbix-tempdb/pull/4#discussion_r39926753"},"pull_request":{"href":"https://api.github.com/repos/jhthorsen/dbix-tempdb/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/pulls/4","id":45443730,"html_url":"https://github.com/jhthorsen/dbix-tempdb/pull/4","diff_url":"https://github.com/jhthorsen/dbix-tempdb/pull/4.diff","patch_url":"https://github.com/jhthorsen/dbix-tempdb/pull/4.patch","issue_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/issues/4","number":4,"state":"open","locked":false,"title":"use URI::db instead of Mojo::URL","user":{"login":"Grinnz","id":5769356,"avatar_url":"https://avatars.githubusercontent.com/u/5769356?v=3","gravatar_id":"","url":"https://api.github.com/users/Grinnz","html_url":"https://github.com/Grinnz","followers_url":"https://api.github.com/users/Grinnz/followers","following_url":"https://api.github.com/users/Grinnz/following{/other_user}","gists_url":"https://api.github.com/users/Grinnz/gists{/gist_id}","starred_url":"https://api.github.com/users/Grinnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Grinnz/subscriptions","organizations_url":"https://api.github.com/users/Grinnz/orgs","repos_url":"https://api.github.com/users/Grinnz/repos","events_url":"https://api.github.com/users/Grinnz/events{/privacy}","received_events_url":"https://api.github.com/users/Grinnz/received_events","type":"User","site_admin":false},"body":"URI::db provides a lot of functionality that is useful for database connections. Along with parsing the URI itself, I used its special methods to simplify determining the database engine to use, parsing out the database name, and generating the connection DSN.","created_at":"2015-09-18T19:31:41Z","updated_at":"2015-09-20T05:15:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bfda3f21fbcc3751664e88e09123cb060a694777","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/pulls/4/commits","review_comments_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/pulls/4/comments","review_comment_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/issues/4/comments","statuses_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/statuses/788e31ae923bfda5b422ed125e651ca773b066ba","head":{"label":"Grinnz:use_uri","ref":"use_uri","sha":"788e31ae923bfda5b422ed125e651ca773b066ba","user":{"login":"Grinnz","id":5769356,"avatar_url":"https://avatars.githubusercontent.com/u/5769356?v=3","gravatar_id":"","url":"https://api.github.com/users/Grinnz","html_url":"https://github.com/Grinnz","followers_url":"https://api.github.com/users/Grinnz/followers","following_url":"https://api.github.com/users/Grinnz/following{/other_user}","gists_url":"https://api.github.com/users/Grinnz/gists{/gist_id}","starred_url":"https://api.github.com/users/Grinnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Grinnz/subscriptions","organizations_url":"https://api.github.com/users/Grinnz/orgs","repos_url":"https://api.github.com/users/Grinnz/repos","events_url":"https://api.github.com/users/Grinnz/events{/privacy}","received_events_url":"https://api.github.com/users/Grinnz/received_events","type":"User","site_admin":false},"repo":{"id":42672857,"name":"dbix-tempdb","full_name":"Grinnz/dbix-tempdb","owner":{"login":"Grinnz","id":5769356,"avatar_url":"https://avatars.githubusercontent.com/u/5769356?v=3","gravatar_id":"","url":"https://api.github.com/users/Grinnz","html_url":"https://github.com/Grinnz","followers_url":"https://api.github.com/users/Grinnz/followers","following_url":"https://api.github.com/users/Grinnz/following{/other_user}","gists_url":"https://api.github.com/users/Grinnz/gists{/gist_id}","starred_url":"https://api.github.com/users/Grinnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Grinnz/subscriptions","organizations_url":"https://api.github.com/users/Grinnz/orgs","repos_url":"https://api.github.com/users/Grinnz/repos","events_url":"https://api.github.com/users/Grinnz/events{/privacy}","received_events_url":"https://api.github.com/users/Grinnz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Grinnz/dbix-tempdb","description":"Create a temporary database","fork":true,"url":"https://api.github.com/repos/Grinnz/dbix-tempdb","forks_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/forks","keys_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/teams","hooks_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/hooks","issue_events_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/issues/events{/number}","events_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/events","assignees_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/assignees{/user}","branches_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/branches{/branch}","tags_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/tags","blobs_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/statuses/{sha}","languages_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/languages","stargazers_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/stargazers","contributors_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/contributors","subscribers_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/subscribers","subscription_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/subscription","commits_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/contents/{+path}","compare_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/merges","archive_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/downloads","issues_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/issues{/number}","pulls_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/pulls{/number}","milestones_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/milestones{/number}","notifications_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/labels{/name}","releases_url":"https://api.github.com/repos/Grinnz/dbix-tempdb/releases{/id}","created_at":"2015-09-17T18:05:19Z","updated_at":"2015-09-17T18:05:20Z","pushed_at":"2015-09-18T19:42:04Z","git_url":"git://github.com/Grinnz/dbix-tempdb.git","ssh_url":"git@github.com:Grinnz/dbix-tempdb.git","clone_url":"https://github.com/Grinnz/dbix-tempdb.git","svn_url":"https://github.com/Grinnz/dbix-tempdb","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Perl6","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":"jhthorsen:master","ref":"master","sha":"ffdc6a6c88d2bd65bfd1f0920dc81f1bbeef6113","user":{"login":"jhthorsen","id":45729,"avatar_url":"https://avatars.githubusercontent.com/u/45729?v=3","gravatar_id":"","url":"https://api.github.com/users/jhthorsen","html_url":"https://github.com/jhthorsen","followers_url":"https://api.github.com/users/jhthorsen/followers","following_url":"https://api.github.com/users/jhthorsen/following{/other_user}","gists_url":"https://api.github.com/users/jhthorsen/gists{/gist_id}","starred_url":"https://api.github.com/users/jhthorsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhthorsen/subscriptions","organizations_url":"https://api.github.com/users/jhthorsen/orgs","repos_url":"https://api.github.com/users/jhthorsen/repos","events_url":"https://api.github.com/users/jhthorsen/events{/privacy}","received_events_url":"https://api.github.com/users/jhthorsen/received_events","type":"User","site_admin":false},"repo":{"id":42660099,"name":"dbix-tempdb","full_name":"jhthorsen/dbix-tempdb","owner":{"login":"jhthorsen","id":45729,"avatar_url":"https://avatars.githubusercontent.com/u/45729?v=3","gravatar_id":"","url":"https://api.github.com/users/jhthorsen","html_url":"https://github.com/jhthorsen","followers_url":"https://api.github.com/users/jhthorsen/followers","following_url":"https://api.github.com/users/jhthorsen/following{/other_user}","gists_url":"https://api.github.com/users/jhthorsen/gists{/gist_id}","starred_url":"https://api.github.com/users/jhthorsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhthorsen/subscriptions","organizations_url":"https://api.github.com/users/jhthorsen/orgs","repos_url":"https://api.github.com/users/jhthorsen/repos","events_url":"https://api.github.com/users/jhthorsen/events{/privacy}","received_events_url":"https://api.github.com/users/jhthorsen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jhthorsen/dbix-tempdb","description":"Create a temporary database","fork":false,"url":"https://api.github.com/repos/jhthorsen/dbix-tempdb","forks_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/forks","keys_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/teams","hooks_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/hooks","issue_events_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/issues/events{/number}","events_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/events","assignees_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/assignees{/user}","branches_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/branches{/branch}","tags_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/tags","blobs_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/statuses/{sha}","languages_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/languages","stargazers_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/stargazers","contributors_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/contributors","subscribers_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/subscribers","subscription_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/subscription","commits_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/contents/{+path}","compare_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/merges","archive_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/downloads","issues_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/issues{/number}","pulls_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/pulls{/number}","milestones_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/milestones{/number}","notifications_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/labels{/name}","releases_url":"https://api.github.com/repos/jhthorsen/dbix-tempdb/releases{/id}","created_at":"2015-09-17T14:14:01Z","updated_at":"2015-09-18T11:57:57Z","pushed_at":"2015-09-18T19:42:04Z","git_url":"git://github.com/jhthorsen/dbix-tempdb.git","ssh_url":"git@github.com:jhthorsen/dbix-tempdb.git","clone_url":"https://github.com/jhthorsen/dbix-tempdb.git","svn_url":"https://github.com/jhthorsen/dbix-tempdb","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jhthorsen/dbix-tempdb/pulls/4"},"html":{"href":"https://github.com/jhthorsen/dbix-tempdb/pull/4"},"issue":{"href":"https://api.github.com/repos/jhthorsen/dbix-tempdb/issues/4"},"comments":{"href":"https://api.github.com/repos/jhthorsen/dbix-tempdb/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/jhthorsen/dbix-tempdb/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/jhthorsen/dbix-tempdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jhthorsen/dbix-tempdb/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/jhthorsen/dbix-tempdb/statuses/788e31ae923bfda5b422ed125e651ca773b066ba"}}}}