{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/msabramo/sqlite_shell/pulls/1","id":28435042,"html_url":"https://github.com/msabramo/sqlite_shell/pull/1","diff_url":"https://github.com/msabramo/sqlite_shell/pull/1.diff","patch_url":"https://github.com/msabramo/sqlite_shell/pull/1.patch","issue_url":"https://api.github.com/repos/msabramo/sqlite_shell/issues/1","number":1,"state":"closed","locked":false,"title":"Format values in INSERTs with _fmt_sql_value","user":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"body":"Attempt at doing what `apsw.format_sql_value` ([docs][], [code][]) did.\r\n\r\n[docs]: http://rogerbinns.github.io/apsw/apsw.html?highlight=format_sql_value#apsw.format_sql_value\r\n[code]: https://github.com/rogerbinns/apsw/blob/master/src/apsw.c#L1018\r\n\r\n#### Before\r\n\r\n```\r\nsqlite> .mode insert\r\nsqlite> select * from operating_systems;\r\nINSERT INTO \"table\" VALUES(3,'http://releases.ubuntu.com/14.04.1/','Trusty Tahr','2014-04-17','2019-04-01');\r\nINSERT INTO \"table\" VALUES(4,'http://releases.ubuntu.com/12.04/','Precise Pangolin','2012-04-26','2017-04-26');\r\nINSERT INTO \"table\" VALUES(5,'http://releases.ubuntu.com/10.04/','Lucid Lynx','2010-04-29','2015-04-01');\r\n```\r\n\r\n#### After\r\n\r\n```\r\nsqlite> .mode insert\r\nsqlite> select * from operating_systems;\r\nINSERT INTO \"table\" VALUES('3','http://releases.ubuntu.com/14.04.1/','Trusty Tahr','2014-04-17','2019-04-01');\r\nINSERT INTO \"table\" VALUES('4','http://releases.ubuntu.com/12.04/','Precise Pangolin','2012-04-26','2017-04-26');\r\nINSERT INTO \"table\" VALUES('5','http://releases.ubuntu.com/10.04/','Lucid Lynx','2010-04-29','2015-04-01');\r\n```","created_at":"2015-02-01T18:46:32Z","updated_at":"2015-02-02T19:03:19Z","closed_at":"2015-02-02T19:03:19Z","merged_at":"2015-02-02T19:03:19Z","merge_commit_sha":"57e32c03c066b7326d6871974e1dc76b616f0e6e","assignee":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/msabramo/sqlite_shell/pulls/1/commits","review_comments_url":"https://api.github.com/repos/msabramo/sqlite_shell/pulls/1/comments","review_comment_url":"https://api.github.com/repos/msabramo/sqlite_shell/pulls/comments/{number}","comments_url":"https://api.github.com/repos/msabramo/sqlite_shell/issues/1/comments","statuses_url":"https://api.github.com/repos/msabramo/sqlite_shell/statuses/50377c4b79f30196e46f4b7b9254e9eb00800586","head":{"label":"msabramo:_fmt_sql_value","ref":"_fmt_sql_value","sha":"50377c4b79f30196e46f4b7b9254e9eb00800586","user":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"repo":{"id":30131406,"name":"sqlite_shell","full_name":"msabramo/sqlite_shell","owner":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/msabramo/sqlite_shell","description":"A friendlier SQLite shell","fork":false,"url":"https://api.github.com/repos/msabramo/sqlite_shell","forks_url":"https://api.github.com/repos/msabramo/sqlite_shell/forks","keys_url":"https://api.github.com/repos/msabramo/sqlite_shell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/msabramo/sqlite_shell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/msabramo/sqlite_shell/teams","hooks_url":"https://api.github.com/repos/msabramo/sqlite_shell/hooks","issue_events_url":"https://api.github.com/repos/msabramo/sqlite_shell/issues/events{/number}","events_url":"https://api.github.com/repos/msabramo/sqlite_shell/events","assignees_url":"https://api.github.com/repos/msabramo/sqlite_shell/assignees{/user}","branches_url":"https://api.github.com/repos/msabramo/sqlite_shell/branches{/branch}","tags_url":"https://api.github.com/repos/msabramo/sqlite_shell/tags","blobs_url":"https://api.github.com/repos/msabramo/sqlite_shell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/msabramo/sqlite_shell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/msabramo/sqlite_shell/git/refs{/sha}","trees_url":"https://api.github.com/repos/msabramo/sqlite_shell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/msabramo/sqlite_shell/statuses/{sha}","languages_url":"https://api.github.com/repos/msabramo/sqlite_shell/languages","stargazers_url":"https://api.github.com/repos/msabramo/sqlite_shell/stargazers","contributors_url":"https://api.github.com/repos/msabramo/sqlite_shell/contributors","subscribers_url":"https://api.github.com/repos/msabramo/sqlite_shell/subscribers","subscription_url":"https://api.github.com/repos/msabramo/sqlite_shell/subscription","commits_url":"https://api.github.com/repos/msabramo/sqlite_shell/commits{/sha}","git_commits_url":"https://api.github.com/repos/msabramo/sqlite_shell/git/commits{/sha}","comments_url":"https://api.github.com/repos/msabramo/sqlite_shell/comments{/number}","issue_comment_url":"https://api.github.com/repos/msabramo/sqlite_shell/issues/comments/{number}","contents_url":"https://api.github.com/repos/msabramo/sqlite_shell/contents/{+path}","compare_url":"https://api.github.com/repos/msabramo/sqlite_shell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/msabramo/sqlite_shell/merges","archive_url":"https://api.github.com/repos/msabramo/sqlite_shell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/msabramo/sqlite_shell/downloads","issues_url":"https://api.github.com/repos/msabramo/sqlite_shell/issues{/number}","pulls_url":"https://api.github.com/repos/msabramo/sqlite_shell/pulls{/number}","milestones_url":"https://api.github.com/repos/msabramo/sqlite_shell/milestones{/number}","notifications_url":"https://api.github.com/repos/msabramo/sqlite_shell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/msabramo/sqlite_shell/labels{/name}","releases_url":"https://api.github.com/repos/msabramo/sqlite_shell/releases{/id}","created_at":"2015-02-01T00:28:09Z","updated_at":"2015-02-01T17:08:35Z","pushed_at":"2015-02-02T19:03:19Z","git_url":"git://github.com/msabramo/sqlite_shell.git","ssh_url":"git@github.com:msabramo/sqlite_shell.git","clone_url":"https://github.com/msabramo/sqlite_shell.git","svn_url":"https://github.com/msabramo/sqlite_shell","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"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":"msabramo:master","ref":"master","sha":"7e39e838002f50826c3b8f9d8e993b5336181abb","user":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"repo":{"id":30131406,"name":"sqlite_shell","full_name":"msabramo/sqlite_shell","owner":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/msabramo/sqlite_shell","description":"A friendlier SQLite shell","fork":false,"url":"https://api.github.com/repos/msabramo/sqlite_shell","forks_url":"https://api.github.com/repos/msabramo/sqlite_shell/forks","keys_url":"https://api.github.com/repos/msabramo/sqlite_shell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/msabramo/sqlite_shell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/msabramo/sqlite_shell/teams","hooks_url":"https://api.github.com/repos/msabramo/sqlite_shell/hooks","issue_events_url":"https://api.github.com/repos/msabramo/sqlite_shell/issues/events{/number}","events_url":"https://api.github.com/repos/msabramo/sqlite_shell/events","assignees_url":"https://api.github.com/repos/msabramo/sqlite_shell/assignees{/user}","branches_url":"https://api.github.com/repos/msabramo/sqlite_shell/branches{/branch}","tags_url":"https://api.github.com/repos/msabramo/sqlite_shell/tags","blobs_url":"https://api.github.com/repos/msabramo/sqlite_shell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/msabramo/sqlite_shell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/msabramo/sqlite_shell/git/refs{/sha}","trees_url":"https://api.github.com/repos/msabramo/sqlite_shell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/msabramo/sqlite_shell/statuses/{sha}","languages_url":"https://api.github.com/repos/msabramo/sqlite_shell/languages","stargazers_url":"https://api.github.com/repos/msabramo/sqlite_shell/stargazers","contributors_url":"https://api.github.com/repos/msabramo/sqlite_shell/contributors","subscribers_url":"https://api.github.com/repos/msabramo/sqlite_shell/subscribers","subscription_url":"https://api.github.com/repos/msabramo/sqlite_shell/subscription","commits_url":"https://api.github.com/repos/msabramo/sqlite_shell/commits{/sha}","git_commits_url":"https://api.github.com/repos/msabramo/sqlite_shell/git/commits{/sha}","comments_url":"https://api.github.com/repos/msabramo/sqlite_shell/comments{/number}","issue_comment_url":"https://api.github.com/repos/msabramo/sqlite_shell/issues/comments/{number}","contents_url":"https://api.github.com/repos/msabramo/sqlite_shell/contents/{+path}","compare_url":"https://api.github.com/repos/msabramo/sqlite_shell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/msabramo/sqlite_shell/merges","archive_url":"https://api.github.com/repos/msabramo/sqlite_shell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/msabramo/sqlite_shell/downloads","issues_url":"https://api.github.com/repos/msabramo/sqlite_shell/issues{/number}","pulls_url":"https://api.github.com/repos/msabramo/sqlite_shell/pulls{/number}","milestones_url":"https://api.github.com/repos/msabramo/sqlite_shell/milestones{/number}","notifications_url":"https://api.github.com/repos/msabramo/sqlite_shell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/msabramo/sqlite_shell/labels{/name}","releases_url":"https://api.github.com/repos/msabramo/sqlite_shell/releases{/id}","created_at":"2015-02-01T00:28:09Z","updated_at":"2015-02-01T17:08:35Z","pushed_at":"2015-02-02T19:03:19Z","git_url":"git://github.com/msabramo/sqlite_shell.git","ssh_url":"git@github.com:msabramo/sqlite_shell.git","clone_url":"https://github.com/msabramo/sqlite_shell.git","svn_url":"https://github.com/msabramo/sqlite_shell","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/msabramo/sqlite_shell/pulls/1"},"html":{"href":"https://github.com/msabramo/sqlite_shell/pull/1"},"issue":{"href":"https://api.github.com/repos/msabramo/sqlite_shell/issues/1"},"comments":{"href":"https://api.github.com/repos/msabramo/sqlite_shell/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/msabramo/sqlite_shell/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/msabramo/sqlite_shell/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/msabramo/sqlite_shell/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/msabramo/sqlite_shell/statuses/50377c4b79f30196e46f4b7b9254e9eb00800586"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":12,"deletions":3,"changed_files":1}}