{"action":"created","comment":{"url":"https://api.github.com/repos/PowerDNS/pdns/pulls/comments/33426664","id":33426664,"diff_hunk":"@@ -220,6 +220,7 @@ public:\n   bool getComment(Comment& comment);\n   void feedComment(const Comment& comment);\n   bool replaceComments(const uint32_t domain_id, const string& qname, const QType& qt, const vector<Comment>& comments);\n+  string directGSQLQuery(const string &query);","path":"pdns/backends/gsql/gsqlbackend.hh","position":4,"original_position":4,"commit_id":"91670fec15fad5bacb0515f7a3641e9e3231cc49","original_commit_id":"91670fec15fad5bacb0515f7a3641e9e3231cc49","user":{"login":"Habbie","id":525838,"avatar_url":"https://avatars.githubusercontent.com/u/525838?v=3","gravatar_id":"","url":"https://api.github.com/users/Habbie","html_url":"https://github.com/Habbie","followers_url":"https://api.github.com/users/Habbie/followers","following_url":"https://api.github.com/users/Habbie/following{/other_user}","gists_url":"https://api.github.com/users/Habbie/gists{/gist_id}","starred_url":"https://api.github.com/users/Habbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Habbie/subscriptions","organizations_url":"https://api.github.com/users/Habbie/orgs","repos_url":"https://api.github.com/users/Habbie/repos","events_url":"https://api.github.com/users/Habbie/events{/privacy}","received_events_url":"https://api.github.com/users/Habbie/received_events","type":"User","site_admin":false},"body":"need to decide on this name - perhaps non-gsql backends also have a use for string commands? (other SQL backends for example)","created_at":"2015-06-28T20:40:59Z","updated_at":"2015-06-28T20:40:59Z","html_url":"https://github.com/PowerDNS/pdns/pull/2618#discussion_r33426664","pull_request_url":"https://api.github.com/repos/PowerDNS/pdns/pulls/2618","_links":{"self":{"href":"https://api.github.com/repos/PowerDNS/pdns/pulls/comments/33426664"},"html":{"href":"https://github.com/PowerDNS/pdns/pull/2618#discussion_r33426664"},"pull_request":{"href":"https://api.github.com/repos/PowerDNS/pdns/pulls/2618"}}},"pull_request":{"url":"https://api.github.com/repos/PowerDNS/pdns/pulls/2618","id":38730422,"html_url":"https://github.com/PowerDNS/pdns/pull/2618","diff_url":"https://github.com/PowerDNS/pdns/pull/2618.diff","patch_url":"https://github.com/PowerDNS/pdns/pull/2618.patch","issue_url":"https://api.github.com/repos/PowerDNS/pdns/issues/2618","number":2618,"state":"open","locked":false,"title":"[WIP] pdnssec gsql-cmd","user":{"login":"Habbie","id":525838,"avatar_url":"https://avatars.githubusercontent.com/u/525838?v=3","gravatar_id":"","url":"https://api.github.com/users/Habbie","html_url":"https://github.com/Habbie","followers_url":"https://api.github.com/users/Habbie/followers","following_url":"https://api.github.com/users/Habbie/following{/other_user}","gists_url":"https://api.github.com/users/Habbie/gists{/gist_id}","starred_url":"https://api.github.com/users/Habbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Habbie/subscriptions","organizations_url":"https://api.github.com/users/Habbie/orgs","repos_url":"https://api.github.com/users/Habbie/repos","events_url":"https://api.github.com/users/Habbie/events{/privacy}","received_events_url":"https://api.github.com/users/Habbie/received_events","type":"User","site_admin":false},"body":"```\r\n$ ../pdns/pdnssec --config-dir=. --config-name=gsqlite3 gsql-cmd gsqlite3 'select * from domains' 'select * from domainmetadata' | column -t -s $'\\t'\r\n== select * from domains\r\n'1'                              'delegated.dnssec-parent.com'         ''                 ''      'NATIVE'  ''  ''\r\n'2'                              'dnssec-parent.com'                   ''                 ''      'NATIVE'  ''  ''\r\n'3'                              'example.com'                         ''                 ''      'NATIVE'  ''  ''\r\n'4'                              'minimal.com'                         ''                 ''      'NATIVE'  ''  ''\r\n'5'                              'nztest.com'                          ''                 ''      'NATIVE'  ''  ''\r\n'6'                              'secure-delegated.dnssec-parent.com'  ''                 ''      'NATIVE'  ''  ''\r\n'7'                              'stest.com'                           ''                 ''      'NATIVE'  ''  ''\r\n'8'                              'test.com'                            ''                 ''      'NATIVE'  ''  ''\r\n'9'                              'tsig.com'                            ''                 ''      'NATIVE'  ''  ''\r\n'10'                             'wtest.com'                           ''                 ''      'NATIVE'  ''  ''\r\n'11'                             'test.dyndns'                         ''                 ''      'NATIVE'  ''  ''\r\n== select * from domainmetadata\r\n'1'                              '9'                                   'TSIG-ALLOW-AXFR'  'test'\r\n```\r\n\r\nComments welcome. Needs squash, perhaps docs, maybe tests (not sure this is important for what's basically a debugging tool)?","created_at":"2015-06-28T19:22:20Z","updated_at":"2015-06-28T20:40:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d06f616c74cd93eff8117170678ab03a38c60ee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PowerDNS/pdns/pulls/2618/commits","review_comments_url":"https://api.github.com/repos/PowerDNS/pdns/pulls/2618/comments","review_comment_url":"https://api.github.com/repos/PowerDNS/pdns/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PowerDNS/pdns/issues/2618/comments","statuses_url":"https://api.github.com/repos/PowerDNS/pdns/statuses/91670fec15fad5bacb0515f7a3641e9e3231cc49","head":{"label":"Habbie:gsql-cmd","ref":"gsql-cmd","sha":"91670fec15fad5bacb0515f7a3641e9e3231cc49","user":{"login":"Habbie","id":525838,"avatar_url":"https://avatars.githubusercontent.com/u/525838?v=3","gravatar_id":"","url":"https://api.github.com/users/Habbie","html_url":"https://github.com/Habbie","followers_url":"https://api.github.com/users/Habbie/followers","following_url":"https://api.github.com/users/Habbie/following{/other_user}","gists_url":"https://api.github.com/users/Habbie/gists{/gist_id}","starred_url":"https://api.github.com/users/Habbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Habbie/subscriptions","organizations_url":"https://api.github.com/users/Habbie/orgs","repos_url":"https://api.github.com/users/Habbie/repos","events_url":"https://api.github.com/users/Habbie/events{/privacy}","received_events_url":"https://api.github.com/users/Habbie/received_events","type":"User","site_admin":false},"repo":{"id":14397693,"name":"pdns","full_name":"Habbie/pdns","owner":{"login":"Habbie","id":525838,"avatar_url":"https://avatars.githubusercontent.com/u/525838?v=3","gravatar_id":"","url":"https://api.github.com/users/Habbie","html_url":"https://github.com/Habbie","followers_url":"https://api.github.com/users/Habbie/followers","following_url":"https://api.github.com/users/Habbie/following{/other_user}","gists_url":"https://api.github.com/users/Habbie/gists{/gist_id}","starred_url":"https://api.github.com/users/Habbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Habbie/subscriptions","organizations_url":"https://api.github.com/users/Habbie/orgs","repos_url":"https://api.github.com/users/Habbie/repos","events_url":"https://api.github.com/users/Habbie/events{/privacy}","received_events_url":"https://api.github.com/users/Habbie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Habbie/pdns","description":"PowerDNS","fork":true,"url":"https://api.github.com/repos/Habbie/pdns","forks_url":"https://api.github.com/repos/Habbie/pdns/forks","keys_url":"https://api.github.com/repos/Habbie/pdns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Habbie/pdns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Habbie/pdns/teams","hooks_url":"https://api.github.com/repos/Habbie/pdns/hooks","issue_events_url":"https://api.github.com/repos/Habbie/pdns/issues/events{/number}","events_url":"https://api.github.com/repos/Habbie/pdns/events","assignees_url":"https://api.github.com/repos/Habbie/pdns/assignees{/user}","branches_url":"https://api.github.com/repos/Habbie/pdns/branches{/branch}","tags_url":"https://api.github.com/repos/Habbie/pdns/tags","blobs_url":"https://api.github.com/repos/Habbie/pdns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Habbie/pdns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Habbie/pdns/git/refs{/sha}","trees_url":"https://api.github.com/repos/Habbie/pdns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Habbie/pdns/statuses/{sha}","languages_url":"https://api.github.com/repos/Habbie/pdns/languages","stargazers_url":"https://api.github.com/repos/Habbie/pdns/stargazers","contributors_url":"https://api.github.com/repos/Habbie/pdns/contributors","subscribers_url":"https://api.github.com/repos/Habbie/pdns/subscribers","subscription_url":"https://api.github.com/repos/Habbie/pdns/subscription","commits_url":"https://api.github.com/repos/Habbie/pdns/commits{/sha}","git_commits_url":"https://api.github.com/repos/Habbie/pdns/git/commits{/sha}","comments_url":"https://api.github.com/repos/Habbie/pdns/comments{/number}","issue_comment_url":"https://api.github.com/repos/Habbie/pdns/issues/comments{/number}","contents_url":"https://api.github.com/repos/Habbie/pdns/contents/{+path}","compare_url":"https://api.github.com/repos/Habbie/pdns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Habbie/pdns/merges","archive_url":"https://api.github.com/repos/Habbie/pdns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Habbie/pdns/downloads","issues_url":"https://api.github.com/repos/Habbie/pdns/issues{/number}","pulls_url":"https://api.github.com/repos/Habbie/pdns/pulls{/number}","milestones_url":"https://api.github.com/repos/Habbie/pdns/milestones{/number}","notifications_url":"https://api.github.com/repos/Habbie/pdns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Habbie/pdns/labels{/name}","releases_url":"https://api.github.com/repos/Habbie/pdns/releases{/id}","created_at":"2013-11-14T14:45:08Z","updated_at":"2015-04-24T08:01:23Z","pushed_at":"2015-06-28T19:25:00Z","git_url":"git://github.com/Habbie/pdns.git","ssh_url":"git@github.com:Habbie/pdns.git","clone_url":"https://github.com/Habbie/pdns.git","svn_url":"https://github.com/Habbie/pdns","homepage":null,"size":31408,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"PowerDNS:master","ref":"master","sha":"0ce255b660bc7078ca157308a66ef6aa48450347","user":{"login":"PowerDNS","id":1282630,"avatar_url":"https://avatars.githubusercontent.com/u/1282630?v=3","gravatar_id":"","url":"https://api.github.com/users/PowerDNS","html_url":"https://github.com/PowerDNS","followers_url":"https://api.github.com/users/PowerDNS/followers","following_url":"https://api.github.com/users/PowerDNS/following{/other_user}","gists_url":"https://api.github.com/users/PowerDNS/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerDNS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerDNS/subscriptions","organizations_url":"https://api.github.com/users/PowerDNS/orgs","repos_url":"https://api.github.com/users/PowerDNS/repos","events_url":"https://api.github.com/users/PowerDNS/events{/privacy}","received_events_url":"https://api.github.com/users/PowerDNS/received_events","type":"Organization","site_admin":false},"repo":{"id":9693534,"name":"pdns","full_name":"PowerDNS/pdns","owner":{"login":"PowerDNS","id":1282630,"avatar_url":"https://avatars.githubusercontent.com/u/1282630?v=3","gravatar_id":"","url":"https://api.github.com/users/PowerDNS","html_url":"https://github.com/PowerDNS","followers_url":"https://api.github.com/users/PowerDNS/followers","following_url":"https://api.github.com/users/PowerDNS/following{/other_user}","gists_url":"https://api.github.com/users/PowerDNS/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerDNS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerDNS/subscriptions","organizations_url":"https://api.github.com/users/PowerDNS/orgs","repos_url":"https://api.github.com/users/PowerDNS/repos","events_url":"https://api.github.com/users/PowerDNS/events{/privacy}","received_events_url":"https://api.github.com/users/PowerDNS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PowerDNS/pdns","description":"PowerDNS","fork":false,"url":"https://api.github.com/repos/PowerDNS/pdns","forks_url":"https://api.github.com/repos/PowerDNS/pdns/forks","keys_url":"https://api.github.com/repos/PowerDNS/pdns/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PowerDNS/pdns/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PowerDNS/pdns/teams","hooks_url":"https://api.github.com/repos/PowerDNS/pdns/hooks","issue_events_url":"https://api.github.com/repos/PowerDNS/pdns/issues/events{/number}","events_url":"https://api.github.com/repos/PowerDNS/pdns/events","assignees_url":"https://api.github.com/repos/PowerDNS/pdns/assignees{/user}","branches_url":"https://api.github.com/repos/PowerDNS/pdns/branches{/branch}","tags_url":"https://api.github.com/repos/PowerDNS/pdns/tags","blobs_url":"https://api.github.com/repos/PowerDNS/pdns/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PowerDNS/pdns/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PowerDNS/pdns/git/refs{/sha}","trees_url":"https://api.github.com/repos/PowerDNS/pdns/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PowerDNS/pdns/statuses/{sha}","languages_url":"https://api.github.com/repos/PowerDNS/pdns/languages","stargazers_url":"https://api.github.com/repos/PowerDNS/pdns/stargazers","contributors_url":"https://api.github.com/repos/PowerDNS/pdns/contributors","subscribers_url":"https://api.github.com/repos/PowerDNS/pdns/subscribers","subscription_url":"https://api.github.com/repos/PowerDNS/pdns/subscription","commits_url":"https://api.github.com/repos/PowerDNS/pdns/commits{/sha}","git_commits_url":"https://api.github.com/repos/PowerDNS/pdns/git/commits{/sha}","comments_url":"https://api.github.com/repos/PowerDNS/pdns/comments{/number}","issue_comment_url":"https://api.github.com/repos/PowerDNS/pdns/issues/comments{/number}","contents_url":"https://api.github.com/repos/PowerDNS/pdns/contents/{+path}","compare_url":"https://api.github.com/repos/PowerDNS/pdns/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PowerDNS/pdns/merges","archive_url":"https://api.github.com/repos/PowerDNS/pdns/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PowerDNS/pdns/downloads","issues_url":"https://api.github.com/repos/PowerDNS/pdns/issues{/number}","pulls_url":"https://api.github.com/repos/PowerDNS/pdns/pulls{/number}","milestones_url":"https://api.github.com/repos/PowerDNS/pdns/milestones{/number}","notifications_url":"https://api.github.com/repos/PowerDNS/pdns/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PowerDNS/pdns/labels{/name}","releases_url":"https://api.github.com/repos/PowerDNS/pdns/releases{/id}","created_at":"2013-04-26T11:16:49Z","updated_at":"2015-06-28T16:37:35Z","pushed_at":"2015-06-28T19:25:01Z","git_url":"git://github.com/PowerDNS/pdns.git","ssh_url":"git@github.com:PowerDNS/pdns.git","clone_url":"https://github.com/PowerDNS/pdns.git","svn_url":"https://github.com/PowerDNS/pdns","homepage":null,"size":44892,"stargazers_count":396,"watchers_count":396,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":146,"mirror_url":null,"open_issues_count":358,"forks":146,"open_issues":358,"watchers":396,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PowerDNS/pdns/pulls/2618"},"html":{"href":"https://github.com/PowerDNS/pdns/pull/2618"},"issue":{"href":"https://api.github.com/repos/PowerDNS/pdns/issues/2618"},"comments":{"href":"https://api.github.com/repos/PowerDNS/pdns/issues/2618/comments"},"review_comments":{"href":"https://api.github.com/repos/PowerDNS/pdns/pulls/2618/comments"},"review_comment":{"href":"https://api.github.com/repos/PowerDNS/pdns/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PowerDNS/pdns/pulls/2618/commits"},"statuses":{"href":"https://api.github.com/repos/PowerDNS/pdns/statuses/91670fec15fad5bacb0515f7a3641e9e3231cc49"}}}}