{"action":"created","comment":{"url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/comments/53499449","id":53499449,"diff_hunk":"@@ -67,11 +133,21 @@ func runInteractive(db *sql.DB, dbURL string) (exitErr error) {\n \tif len(fullPrompt) == 0 {\n \t\tfullPrompt = \" \"\n \t}\n-\tcontinuePrompt := strings.Repeat(\" \", len(fullPrompt)-1) + \"-\"\n+\n+\tcontinuePrompt = strings.Repeat(\" \", len(fullPrompt)-1) + \"-\"\n \n \tfullPrompt += \"> \"\n \tcontinuePrompt += \"> \"\n \n+\treturn fullPrompt, continuePrompt\n+}\n+\n+// runInteractive runs the SQL client interactively, presenting\n+// a prompt to the user for each statement.\n+func runInteractive(db *sql.DB, dbURL string) (exitErr error) {\n+","path":"cli/sql.go","position":101,"original_position":101,"commit_id":"3372a302c41170fa0093ecbea04753c808e97faf","original_commit_id":"3372a302c41170fa0093ecbea04753c808e97faf","user":{"login":"petermattis","id":6201335,"avatar_url":"https://avatars.githubusercontent.com/u/6201335?v=3","gravatar_id":"","url":"https://api.github.com/users/petermattis","html_url":"https://github.com/petermattis","followers_url":"https://api.github.com/users/petermattis/followers","following_url":"https://api.github.com/users/petermattis/following{/other_user}","gists_url":"https://api.github.com/users/petermattis/gists{/gist_id}","starred_url":"https://api.github.com/users/petermattis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petermattis/subscriptions","organizations_url":"https://api.github.com/users/petermattis/orgs","repos_url":"https://api.github.com/users/petermattis/repos","events_url":"https://api.github.com/users/petermattis/events{/privacy}","received_events_url":"https://api.github.com/users/petermattis/received_events","type":"User","site_admin":false},"body":"Yes please.","created_at":"2016-02-19T18:41:21Z","updated_at":"2016-02-19T18:41:21Z","html_url":"https://github.com/cockroachdb/cockroach/pull/4471#discussion_r53499449","pull_request_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/4471","_links":{"self":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/comments/53499449"},"html":{"href":"https://github.com/cockroachdb/cockroach/pull/4471#discussion_r53499449"},"pull_request":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/4471"}}},"pull_request":{"url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/4471","id":59727069,"html_url":"https://github.com/cockroachdb/cockroach/pull/4471","diff_url":"https://github.com/cockroachdb/cockroach/pull/4471.diff","patch_url":"https://github.com/cockroachdb/cockroach/pull/4471.patch","issue_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/4471","number":4471,"state":"closed","locked":false,"title":"Provide a minimal set of client-side commands in the CLI client.","user":{"login":"knz","id":642886,"avatar_url":"https://avatars.githubusercontent.com/u/642886?v=3","gravatar_id":"","url":"https://api.github.com/users/knz","html_url":"https://github.com/knz","followers_url":"https://api.github.com/users/knz/followers","following_url":"https://api.github.com/users/knz/following{/other_user}","gists_url":"https://api.github.com/users/knz/gists{/gist_id}","starred_url":"https://api.github.com/users/knz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knz/subscriptions","organizations_url":"https://api.github.com/users/knz/orgs","repos_url":"https://api.github.com/users/knz/repos","events_url":"https://api.github.com/users/knz/events{/privacy}","received_events_url":"https://api.github.com/users/knz/received_events","type":"User","site_admin":false},"body":"This patch adds support for \\q and \\?, and a helpful suggestion to use\r\n`SHOW` if the user tries to input \\d.\r\n\r\nFixes #4381.\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.svg\" height=\"40\" alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/cockroachdb/cockroach/4471)\n<!-- Reviewable:end -->\n","created_at":"2016-02-17T23:29:43Z","updated_at":"2016-02-19T18:41:21Z","closed_at":"2016-02-19T16:46:35Z","merged_at":"2016-02-19T16:46:35Z","merge_commit_sha":"2559d72dd9c2dabbf1f2e714a29ce857948fed9e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/4471/commits","review_comments_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/4471/comments","review_comment_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/4471/comments","statuses_url":"https://api.github.com/repos/cockroachdb/cockroach/statuses/3372a302c41170fa0093ecbea04753c808e97faf","head":{"label":"knz:cli-help","ref":"cli-help","sha":"3372a302c41170fa0093ecbea04753c808e97faf","user":{"login":"knz","id":642886,"avatar_url":"https://avatars.githubusercontent.com/u/642886?v=3","gravatar_id":"","url":"https://api.github.com/users/knz","html_url":"https://github.com/knz","followers_url":"https://api.github.com/users/knz/followers","following_url":"https://api.github.com/users/knz/following{/other_user}","gists_url":"https://api.github.com/users/knz/gists{/gist_id}","starred_url":"https://api.github.com/users/knz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knz/subscriptions","organizations_url":"https://api.github.com/users/knz/orgs","repos_url":"https://api.github.com/users/knz/repos","events_url":"https://api.github.com/users/knz/events{/privacy}","received_events_url":"https://api.github.com/users/knz/received_events","type":"User","site_admin":false},"repo":{"id":49441405,"name":"cockroach","full_name":"knz/cockroach","owner":{"login":"knz","id":642886,"avatar_url":"https://avatars.githubusercontent.com/u/642886?v=3","gravatar_id":"","url":"https://api.github.com/users/knz","html_url":"https://github.com/knz","followers_url":"https://api.github.com/users/knz/followers","following_url":"https://api.github.com/users/knz/following{/other_user}","gists_url":"https://api.github.com/users/knz/gists{/gist_id}","starred_url":"https://api.github.com/users/knz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knz/subscriptions","organizations_url":"https://api.github.com/users/knz/orgs","repos_url":"https://api.github.com/users/knz/repos","events_url":"https://api.github.com/users/knz/events{/privacy}","received_events_url":"https://api.github.com/users/knz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/knz/cockroach","description":"A Scalable, Survivable, Strongly-Consistent SQL Database","fork":true,"url":"https://api.github.com/repos/knz/cockroach","forks_url":"https://api.github.com/repos/knz/cockroach/forks","keys_url":"https://api.github.com/repos/knz/cockroach/keys{/key_id}","collaborators_url":"https://api.github.com/repos/knz/cockroach/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/knz/cockroach/teams","hooks_url":"https://api.github.com/repos/knz/cockroach/hooks","issue_events_url":"https://api.github.com/repos/knz/cockroach/issues/events{/number}","events_url":"https://api.github.com/repos/knz/cockroach/events","assignees_url":"https://api.github.com/repos/knz/cockroach/assignees{/user}","branches_url":"https://api.github.com/repos/knz/cockroach/branches{/branch}","tags_url":"https://api.github.com/repos/knz/cockroach/tags","blobs_url":"https://api.github.com/repos/knz/cockroach/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/knz/cockroach/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/knz/cockroach/git/refs{/sha}","trees_url":"https://api.github.com/repos/knz/cockroach/git/trees{/sha}","statuses_url":"https://api.github.com/repos/knz/cockroach/statuses/{sha}","languages_url":"https://api.github.com/repos/knz/cockroach/languages","stargazers_url":"https://api.github.com/repos/knz/cockroach/stargazers","contributors_url":"https://api.github.com/repos/knz/cockroach/contributors","subscribers_url":"https://api.github.com/repos/knz/cockroach/subscribers","subscription_url":"https://api.github.com/repos/knz/cockroach/subscription","commits_url":"https://api.github.com/repos/knz/cockroach/commits{/sha}","git_commits_url":"https://api.github.com/repos/knz/cockroach/git/commits{/sha}","comments_url":"https://api.github.com/repos/knz/cockroach/comments{/number}","issue_comment_url":"https://api.github.com/repos/knz/cockroach/issues/comments{/number}","contents_url":"https://api.github.com/repos/knz/cockroach/contents/{+path}","compare_url":"https://api.github.com/repos/knz/cockroach/compare/{base}...{head}","merges_url":"https://api.github.com/repos/knz/cockroach/merges","archive_url":"https://api.github.com/repos/knz/cockroach/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/knz/cockroach/downloads","issues_url":"https://api.github.com/repos/knz/cockroach/issues{/number}","pulls_url":"https://api.github.com/repos/knz/cockroach/pulls{/number}","milestones_url":"https://api.github.com/repos/knz/cockroach/milestones{/number}","notifications_url":"https://api.github.com/repos/knz/cockroach/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/knz/cockroach/labels{/name}","releases_url":"https://api.github.com/repos/knz/cockroach/releases{/id}","deployments_url":"https://api.github.com/repos/knz/cockroach/deployments","created_at":"2016-01-11T17:11:07Z","updated_at":"2016-01-11T17:11:10Z","pushed_at":"2016-02-18T17:42:06Z","git_url":"git://github.com/knz/cockroach.git","ssh_url":"git@github.com:knz/cockroach.git","clone_url":"https://github.com/knz/cockroach.git","svn_url":"https://github.com/knz/cockroach","homepage":"http://www.cockroachlabs.com","size":58468,"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":"cockroachdb:master","ref":"master","sha":"198faa30309f080d34d2c782c18395b82339cc4b","user":{"login":"cockroachdb","id":6748139,"avatar_url":"https://avatars.githubusercontent.com/u/6748139?v=3","gravatar_id":"","url":"https://api.github.com/users/cockroachdb","html_url":"https://github.com/cockroachdb","followers_url":"https://api.github.com/users/cockroachdb/followers","following_url":"https://api.github.com/users/cockroachdb/following{/other_user}","gists_url":"https://api.github.com/users/cockroachdb/gists{/gist_id}","starred_url":"https://api.github.com/users/cockroachdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cockroachdb/subscriptions","organizations_url":"https://api.github.com/users/cockroachdb/orgs","repos_url":"https://api.github.com/users/cockroachdb/repos","events_url":"https://api.github.com/users/cockroachdb/events{/privacy}","received_events_url":"https://api.github.com/users/cockroachdb/received_events","type":"Organization","site_admin":false},"repo":{"id":16563587,"name":"cockroach","full_name":"cockroachdb/cockroach","owner":{"login":"cockroachdb","id":6748139,"avatar_url":"https://avatars.githubusercontent.com/u/6748139?v=3","gravatar_id":"","url":"https://api.github.com/users/cockroachdb","html_url":"https://github.com/cockroachdb","followers_url":"https://api.github.com/users/cockroachdb/followers","following_url":"https://api.github.com/users/cockroachdb/following{/other_user}","gists_url":"https://api.github.com/users/cockroachdb/gists{/gist_id}","starred_url":"https://api.github.com/users/cockroachdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cockroachdb/subscriptions","organizations_url":"https://api.github.com/users/cockroachdb/orgs","repos_url":"https://api.github.com/users/cockroachdb/repos","events_url":"https://api.github.com/users/cockroachdb/events{/privacy}","received_events_url":"https://api.github.com/users/cockroachdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cockroachdb/cockroach","description":"A Scalable, Survivable, Strongly-Consistent SQL Database","fork":false,"url":"https://api.github.com/repos/cockroachdb/cockroach","forks_url":"https://api.github.com/repos/cockroachdb/cockroach/forks","keys_url":"https://api.github.com/repos/cockroachdb/cockroach/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cockroachdb/cockroach/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cockroachdb/cockroach/teams","hooks_url":"https://api.github.com/repos/cockroachdb/cockroach/hooks","issue_events_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/events{/number}","events_url":"https://api.github.com/repos/cockroachdb/cockroach/events","assignees_url":"https://api.github.com/repos/cockroachdb/cockroach/assignees{/user}","branches_url":"https://api.github.com/repos/cockroachdb/cockroach/branches{/branch}","tags_url":"https://api.github.com/repos/cockroachdb/cockroach/tags","blobs_url":"https://api.github.com/repos/cockroachdb/cockroach/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cockroachdb/cockroach/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cockroachdb/cockroach/git/refs{/sha}","trees_url":"https://api.github.com/repos/cockroachdb/cockroach/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cockroachdb/cockroach/statuses/{sha}","languages_url":"https://api.github.com/repos/cockroachdb/cockroach/languages","stargazers_url":"https://api.github.com/repos/cockroachdb/cockroach/stargazers","contributors_url":"https://api.github.com/repos/cockroachdb/cockroach/contributors","subscribers_url":"https://api.github.com/repos/cockroachdb/cockroach/subscribers","subscription_url":"https://api.github.com/repos/cockroachdb/cockroach/subscription","commits_url":"https://api.github.com/repos/cockroachdb/cockroach/commits{/sha}","git_commits_url":"https://api.github.com/repos/cockroachdb/cockroach/git/commits{/sha}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/comments{/number}","issue_comment_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/comments{/number}","contents_url":"https://api.github.com/repos/cockroachdb/cockroach/contents/{+path}","compare_url":"https://api.github.com/repos/cockroachdb/cockroach/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cockroachdb/cockroach/merges","archive_url":"https://api.github.com/repos/cockroachdb/cockroach/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cockroachdb/cockroach/downloads","issues_url":"https://api.github.com/repos/cockroachdb/cockroach/issues{/number}","pulls_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls{/number}","milestones_url":"https://api.github.com/repos/cockroachdb/cockroach/milestones{/number}","notifications_url":"https://api.github.com/repos/cockroachdb/cockroach/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cockroachdb/cockroach/labels{/name}","releases_url":"https://api.github.com/repos/cockroachdb/cockroach/releases{/id}","deployments_url":"https://api.github.com/repos/cockroachdb/cockroach/deployments","created_at":"2014-02-06T00:18:47Z","updated_at":"2016-02-19T15:44:18Z","pushed_at":"2016-02-19T18:39:26Z","git_url":"git://github.com/cockroachdb/cockroach.git","ssh_url":"git@github.com:cockroachdb/cockroach.git","clone_url":"https://github.com/cockroachdb/cockroach.git","svn_url":"https://github.com/cockroachdb/cockroach","homepage":"http://www.cockroachlabs.com","size":67994,"stargazers_count":6240,"watchers_count":6240,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":572,"mirror_url":null,"open_issues_count":293,"forks":572,"open_issues":293,"watchers":6240,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/4471"},"html":{"href":"https://github.com/cockroachdb/cockroach/pull/4471"},"issue":{"href":"https://api.github.com/repos/cockroachdb/cockroach/issues/4471"},"comments":{"href":"https://api.github.com/repos/cockroachdb/cockroach/issues/4471/comments"},"review_comments":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/4471/comments"},"review_comment":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/4471/commits"},"statuses":{"href":"https://api.github.com/repos/cockroachdb/cockroach/statuses/3372a302c41170fa0093ecbea04753c808e97faf"}}}}