{"action":"created","comment":{"url":"https://api.github.com/repos/basho/riak_kv/pulls/comments/72276658","id":72276658,"diff_hunk":"@@ -46,15 +46,16 @@\n -include(\"riak_kv_ts.hrl\").\n \n %% external API calls enumerated\n--type query_api_call() :: query_create_table | query_select | query_describe | query_insert.\n+-type query_api_call() :: query_create_table | query_select | query_describe | query_insert | query_show_tables.\n -type api_call() :: get | put | delete | list_keys | coverage | query_api_call().\n -export_type([query_api_call/0, api_call/0]).\n \n -spec api_call_from_sql_type(riak_kv_qry:query_type()) -> query_api_call().\n-api_call_from_sql_type(ddl)      -> query_create_table;\n-api_call_from_sql_type(select)   -> query_select;\n-api_call_from_sql_type(describe) -> query_describe;\n-api_call_from_sql_type(insert)   -> query_insert.\n+api_call_from_sql_type(ddl)         -> query_create_table;","path":"src/riak_kv_ts_api.erl","position":14,"original_position":14,"commit_id":"ac555e56c2c30b8f89506ba3e37c8a3906fa51b9","original_commit_id":"ac555e56c2c30b8f89506ba3e37c8a3906fa51b9","user":{"login":"andytill","id":213455,"avatar_url":"https://avatars.githubusercontent.com/u/213455?v=3","gravatar_id":"","url":"https://api.github.com/users/andytill","html_url":"https://github.com/andytill","followers_url":"https://api.github.com/users/andytill/followers","following_url":"https://api.github.com/users/andytill/following{/other_user}","gists_url":"https://api.github.com/users/andytill/gists{/gist_id}","starred_url":"https://api.github.com/users/andytill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andytill/subscriptions","organizations_url":"https://api.github.com/users/andytill/orgs","repos_url":"https://api.github.com/users/andytill/repos","events_url":"https://api.github.com/users/andytill/events{/privacy}","received_events_url":"https://api.github.com/users/andytill/received_events","type":"User","site_admin":false},"body":"This function should be like the snippet below to avoid big diffs like this.\r\n\r\n```erlang\r\napi_call_from_sql_type(ddl) ->\r\n    query_create_table.\r\n```\r\n\r\n","created_at":"2016-07-26T15:43:40Z","updated_at":"2016-07-26T15:43:40Z","html_url":"https://github.com/basho/riak_kv/pull/1448#discussion_r72276658","pull_request_url":"https://api.github.com/repos/basho/riak_kv/pulls/1448","_links":{"self":{"href":"https://api.github.com/repos/basho/riak_kv/pulls/comments/72276658"},"html":{"href":"https://github.com/basho/riak_kv/pull/1448#discussion_r72276658"},"pull_request":{"href":"https://api.github.com/repos/basho/riak_kv/pulls/1448"}}},"pull_request":{"url":"https://api.github.com/repos/basho/riak_kv/pulls/1448","id":78864062,"html_url":"https://github.com/basho/riak_kv/pull/1448","diff_url":"https://github.com/basho/riak_kv/pull/1448.diff","patch_url":"https://github.com/basho/riak_kv/pull/1448.patch","issue_url":"https://api.github.com/repos/basho/riak_kv/issues/1448","number":1448,"state":"open","locked":false,"title":"RTS-1051: Add the SHOW TABLES command","user":{"login":"javajolt","id":2357996,"avatar_url":"https://avatars.githubusercontent.com/u/2357996?v=3","gravatar_id":"","url":"https://api.github.com/users/javajolt","html_url":"https://github.com/javajolt","followers_url":"https://api.github.com/users/javajolt/followers","following_url":"https://api.github.com/users/javajolt/following{/other_user}","gists_url":"https://api.github.com/users/javajolt/gists{/gist_id}","starred_url":"https://api.github.com/users/javajolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javajolt/subscriptions","organizations_url":"https://api.github.com/users/javajolt/orgs","repos_url":"https://api.github.com/users/javajolt/repos","events_url":"https://api.github.com/users/javajolt/events{/privacy}","received_events_url":"https://api.github.com/users/javajolt/received_events","type":"User","site_admin":false},"body":"Return a single-columned table with a list of all compiled tables when the query string \"SHOW TABLES\" is given","created_at":"2016-07-26T14:41:38Z","updated_at":"2016-07-26T15:43:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bdf514ddaef86cd905d4b68473d3d7740f80d460","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/basho/riak_kv/pulls/1448/commits","review_comments_url":"https://api.github.com/repos/basho/riak_kv/pulls/1448/comments","review_comment_url":"https://api.github.com/repos/basho/riak_kv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/basho/riak_kv/issues/1448/comments","statuses_url":"https://api.github.com/repos/basho/riak_kv/statuses/ac555e56c2c30b8f89506ba3e37c8a3906fa51b9","head":{"label":"javajolt:rts-1051-add-show-tables","ref":"rts-1051-add-show-tables","sha":"ac555e56c2c30b8f89506ba3e37c8a3906fa51b9","user":{"login":"javajolt","id":2357996,"avatar_url":"https://avatars.githubusercontent.com/u/2357996?v=3","gravatar_id":"","url":"https://api.github.com/users/javajolt","html_url":"https://github.com/javajolt","followers_url":"https://api.github.com/users/javajolt/followers","following_url":"https://api.github.com/users/javajolt/following{/other_user}","gists_url":"https://api.github.com/users/javajolt/gists{/gist_id}","starred_url":"https://api.github.com/users/javajolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javajolt/subscriptions","organizations_url":"https://api.github.com/users/javajolt/orgs","repos_url":"https://api.github.com/users/javajolt/repos","events_url":"https://api.github.com/users/javajolt/events{/privacy}","received_events_url":"https://api.github.com/users/javajolt/received_events","type":"User","site_admin":false},"repo":{"id":53004177,"name":"riak_kv","full_name":"javajolt/riak_kv","owner":{"login":"javajolt","id":2357996,"avatar_url":"https://avatars.githubusercontent.com/u/2357996?v=3","gravatar_id":"","url":"https://api.github.com/users/javajolt","html_url":"https://github.com/javajolt","followers_url":"https://api.github.com/users/javajolt/followers","following_url":"https://api.github.com/users/javajolt/following{/other_user}","gists_url":"https://api.github.com/users/javajolt/gists{/gist_id}","starred_url":"https://api.github.com/users/javajolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javajolt/subscriptions","organizations_url":"https://api.github.com/users/javajolt/orgs","repos_url":"https://api.github.com/users/javajolt/repos","events_url":"https://api.github.com/users/javajolt/events{/privacy}","received_events_url":"https://api.github.com/users/javajolt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/javajolt/riak_kv","description":"Riak Key/Value Store","fork":true,"url":"https://api.github.com/repos/javajolt/riak_kv","forks_url":"https://api.github.com/repos/javajolt/riak_kv/forks","keys_url":"https://api.github.com/repos/javajolt/riak_kv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/javajolt/riak_kv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/javajolt/riak_kv/teams","hooks_url":"https://api.github.com/repos/javajolt/riak_kv/hooks","issue_events_url":"https://api.github.com/repos/javajolt/riak_kv/issues/events{/number}","events_url":"https://api.github.com/repos/javajolt/riak_kv/events","assignees_url":"https://api.github.com/repos/javajolt/riak_kv/assignees{/user}","branches_url":"https://api.github.com/repos/javajolt/riak_kv/branches{/branch}","tags_url":"https://api.github.com/repos/javajolt/riak_kv/tags","blobs_url":"https://api.github.com/repos/javajolt/riak_kv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/javajolt/riak_kv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/javajolt/riak_kv/git/refs{/sha}","trees_url":"https://api.github.com/repos/javajolt/riak_kv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/javajolt/riak_kv/statuses/{sha}","languages_url":"https://api.github.com/repos/javajolt/riak_kv/languages","stargazers_url":"https://api.github.com/repos/javajolt/riak_kv/stargazers","contributors_url":"https://api.github.com/repos/javajolt/riak_kv/contributors","subscribers_url":"https://api.github.com/repos/javajolt/riak_kv/subscribers","subscription_url":"https://api.github.com/repos/javajolt/riak_kv/subscription","commits_url":"https://api.github.com/repos/javajolt/riak_kv/commits{/sha}","git_commits_url":"https://api.github.com/repos/javajolt/riak_kv/git/commits{/sha}","comments_url":"https://api.github.com/repos/javajolt/riak_kv/comments{/number}","issue_comment_url":"https://api.github.com/repos/javajolt/riak_kv/issues/comments{/number}","contents_url":"https://api.github.com/repos/javajolt/riak_kv/contents/{+path}","compare_url":"https://api.github.com/repos/javajolt/riak_kv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/javajolt/riak_kv/merges","archive_url":"https://api.github.com/repos/javajolt/riak_kv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/javajolt/riak_kv/downloads","issues_url":"https://api.github.com/repos/javajolt/riak_kv/issues{/number}","pulls_url":"https://api.github.com/repos/javajolt/riak_kv/pulls{/number}","milestones_url":"https://api.github.com/repos/javajolt/riak_kv/milestones{/number}","notifications_url":"https://api.github.com/repos/javajolt/riak_kv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/javajolt/riak_kv/labels{/name}","releases_url":"https://api.github.com/repos/javajolt/riak_kv/releases{/id}","deployments_url":"https://api.github.com/repos/javajolt/riak_kv/deployments","created_at":"2016-03-02T23:25:03Z","updated_at":"2016-03-15T18:49:28Z","pushed_at":"2016-07-26T14:42:14Z","git_url":"git://github.com/javajolt/riak_kv.git","ssh_url":"git@github.com:javajolt/riak_kv.git","clone_url":"https://github.com/javajolt/riak_kv.git","svn_url":"https://github.com/javajolt/riak_kv","homepage":"","size":10952,"stargazers_count":1,"watchers_count":1,"language":"Erlang","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":1,"default_branch":"develop"}},"base":{"label":"basho:riak_ts-develop","ref":"riak_ts-develop","sha":"b038758523d1875043489db0068dddd6426ae08b","user":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?v=3","gravatar_id":"","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"repo":{"id":791522,"name":"riak_kv","full_name":"basho/riak_kv","owner":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?v=3","gravatar_id":"","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/basho/riak_kv","description":"Riak Key/Value Store","fork":false,"url":"https://api.github.com/repos/basho/riak_kv","forks_url":"https://api.github.com/repos/basho/riak_kv/forks","keys_url":"https://api.github.com/repos/basho/riak_kv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/basho/riak_kv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/basho/riak_kv/teams","hooks_url":"https://api.github.com/repos/basho/riak_kv/hooks","issue_events_url":"https://api.github.com/repos/basho/riak_kv/issues/events{/number}","events_url":"https://api.github.com/repos/basho/riak_kv/events","assignees_url":"https://api.github.com/repos/basho/riak_kv/assignees{/user}","branches_url":"https://api.github.com/repos/basho/riak_kv/branches{/branch}","tags_url":"https://api.github.com/repos/basho/riak_kv/tags","blobs_url":"https://api.github.com/repos/basho/riak_kv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/basho/riak_kv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/basho/riak_kv/git/refs{/sha}","trees_url":"https://api.github.com/repos/basho/riak_kv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/basho/riak_kv/statuses/{sha}","languages_url":"https://api.github.com/repos/basho/riak_kv/languages","stargazers_url":"https://api.github.com/repos/basho/riak_kv/stargazers","contributors_url":"https://api.github.com/repos/basho/riak_kv/contributors","subscribers_url":"https://api.github.com/repos/basho/riak_kv/subscribers","subscription_url":"https://api.github.com/repos/basho/riak_kv/subscription","commits_url":"https://api.github.com/repos/basho/riak_kv/commits{/sha}","git_commits_url":"https://api.github.com/repos/basho/riak_kv/git/commits{/sha}","comments_url":"https://api.github.com/repos/basho/riak_kv/comments{/number}","issue_comment_url":"https://api.github.com/repos/basho/riak_kv/issues/comments{/number}","contents_url":"https://api.github.com/repos/basho/riak_kv/contents/{+path}","compare_url":"https://api.github.com/repos/basho/riak_kv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/basho/riak_kv/merges","archive_url":"https://api.github.com/repos/basho/riak_kv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/basho/riak_kv/downloads","issues_url":"https://api.github.com/repos/basho/riak_kv/issues{/number}","pulls_url":"https://api.github.com/repos/basho/riak_kv/pulls{/number}","milestones_url":"https://api.github.com/repos/basho/riak_kv/milestones{/number}","notifications_url":"https://api.github.com/repos/basho/riak_kv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/basho/riak_kv/labels{/name}","releases_url":"https://api.github.com/repos/basho/riak_kv/releases{/id}","deployments_url":"https://api.github.com/repos/basho/riak_kv/deployments","created_at":"2010-07-22T17:27:35Z","updated_at":"2016-07-26T02:29:56Z","pushed_at":"2016-07-26T15:41:52Z","git_url":"git://github.com/basho/riak_kv.git","ssh_url":"git@github.com:basho/riak_kv.git","clone_url":"https://github.com/basho/riak_kv.git","svn_url":"https://github.com/basho/riak_kv","homepage":"","size":27360,"stargazers_count":328,"watchers_count":328,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":134,"mirror_url":null,"open_issues_count":179,"forks":134,"open_issues":179,"watchers":328,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/basho/riak_kv/pulls/1448"},"html":{"href":"https://github.com/basho/riak_kv/pull/1448"},"issue":{"href":"https://api.github.com/repos/basho/riak_kv/issues/1448"},"comments":{"href":"https://api.github.com/repos/basho/riak_kv/issues/1448/comments"},"review_comments":{"href":"https://api.github.com/repos/basho/riak_kv/pulls/1448/comments"},"review_comment":{"href":"https://api.github.com/repos/basho/riak_kv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/basho/riak_kv/pulls/1448/commits"},"statuses":{"href":"https://api.github.com/repos/basho/riak_kv/statuses/ac555e56c2c30b8f89506ba3e37c8a3906fa51b9"}}}}
{"actor":{"display_login":"andytill"}}