{"action":"created","comment":{"url":"https://api.github.com/repos/roskakori/cutplace/pulls/comments/27355409","id":27355409,"diff_hunk":"@@ -224,3 +224,73 @@ def write_create(cid_path, cid_reader):\n         # TODO: Add option for encoding.\n         create_file.write(as_sql_create_table(cid_reader, MYSQL))\n         # TODO: Add option for target SQL dialect\n+\n+\n+class SqlFactory(object):\n+    def __init__(self, cid, table, dialect=ANSI):","path":"cutplace/sql.py","position":7,"original_position":7,"commit_id":"3fb6b7d38d154158310ac241a385923de0ba8e51","original_commit_id":"3fb6b7d38d154158310ac241a385923de0ba8e51","user":{"login":"roskakori","id":328726,"avatar_url":"https://avatars.githubusercontent.com/u/328726?v=3","gravatar_id":"","url":"https://api.github.com/users/roskakori","html_url":"https://github.com/roskakori","followers_url":"https://api.github.com/users/roskakori/followers","following_url":"https://api.github.com/users/roskakori/following{/other_user}","gists_url":"https://api.github.com/users/roskakori/gists{/gist_id}","starred_url":"https://api.github.com/users/roskakori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roskakori/subscriptions","organizations_url":"https://api.github.com/users/roskakori/orgs","repos_url":"https://api.github.com/users/roskakori/repos","events_url":"https://api.github.com/users/roskakori/events{/privacy}","received_events_url":"https://api.github.com/users/roskakori/received_events","type":"User","site_admin":false},"body":"Use `ANSI_SQL_DIALECT`.","created_at":"2015-03-29T15:35:42Z","updated_at":"2015-03-29T15:35:42Z","html_url":"https://github.com/roskakori/cutplace/pull/104#discussion_r27355409","pull_request_url":"https://api.github.com/repos/roskakori/cutplace/pulls/104","_links":{"self":{"href":"https://api.github.com/repos/roskakori/cutplace/pulls/comments/27355409"},"html":{"href":"https://github.com/roskakori/cutplace/pull/104#discussion_r27355409"},"pull_request":{"href":"https://api.github.com/repos/roskakori/cutplace/pulls/104"}}},"pull_request":{"url":"https://api.github.com/repos/roskakori/cutplace/pulls/104","id":32183119,"html_url":"https://github.com/roskakori/cutplace/pull/104","diff_url":"https://github.com/roskakori/cutplace/pull/104.diff","patch_url":"https://github.com/roskakori/cutplace/pull/104.patch","issue_url":"https://api.github.com/repos/roskakori/cutplace/issues/104","number":104,"state":"open","locked":false,"title":"#73: Convert CID to SQL statements","user":{"login":"patrick26041996","id":8735912,"avatar_url":"https://avatars.githubusercontent.com/u/8735912?v=3","gravatar_id":"","url":"https://api.github.com/users/patrick26041996","html_url":"https://github.com/patrick26041996","followers_url":"https://api.github.com/users/patrick26041996/followers","following_url":"https://api.github.com/users/patrick26041996/following{/other_user}","gists_url":"https://api.github.com/users/patrick26041996/gists{/gist_id}","starred_url":"https://api.github.com/users/patrick26041996/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrick26041996/subscriptions","organizations_url":"https://api.github.com/users/patrick26041996/orgs","repos_url":"https://api.github.com/users/patrick26041996/repos","events_url":"https://api.github.com/users/patrick26041996/events{/privacy}","received_events_url":"https://api.github.com/users/patrick26041996/received_events","type":"User","site_admin":false},"body":" * implemented a method \"sql_ansi_type\" in every field-format\r\n * implemented the new class \"SqlFactory\", which makes the usage of the functions of the sql module easier","created_at":"2015-03-29T15:23:15Z","updated_at":"2015-03-29T15:35:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99c54acbd2af3c38e2f377b461d333a8baaa025d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/roskakori/cutplace/pulls/104/commits","review_comments_url":"https://api.github.com/repos/roskakori/cutplace/pulls/104/comments","review_comment_url":"https://api.github.com/repos/roskakori/cutplace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/roskakori/cutplace/issues/104/comments","statuses_url":"https://api.github.com/repos/roskakori/cutplace/statuses/3fb6b7d38d154158310ac241a385923de0ba8e51","head":{"label":"patrick26041996:master","ref":"master","sha":"3fb6b7d38d154158310ac241a385923de0ba8e51","user":{"login":"patrick26041996","id":8735912,"avatar_url":"https://avatars.githubusercontent.com/u/8735912?v=3","gravatar_id":"","url":"https://api.github.com/users/patrick26041996","html_url":"https://github.com/patrick26041996","followers_url":"https://api.github.com/users/patrick26041996/followers","following_url":"https://api.github.com/users/patrick26041996/following{/other_user}","gists_url":"https://api.github.com/users/patrick26041996/gists{/gist_id}","starred_url":"https://api.github.com/users/patrick26041996/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrick26041996/subscriptions","organizations_url":"https://api.github.com/users/patrick26041996/orgs","repos_url":"https://api.github.com/users/patrick26041996/repos","events_url":"https://api.github.com/users/patrick26041996/events{/privacy}","received_events_url":"https://api.github.com/users/patrick26041996/received_events","type":"User","site_admin":false},"repo":{"id":29582507,"name":"cutplace","full_name":"patrick26041996/cutplace","owner":{"login":"patrick26041996","id":8735912,"avatar_url":"https://avatars.githubusercontent.com/u/8735912?v=3","gravatar_id":"","url":"https://api.github.com/users/patrick26041996","html_url":"https://github.com/patrick26041996","followers_url":"https://api.github.com/users/patrick26041996/followers","following_url":"https://api.github.com/users/patrick26041996/following{/other_user}","gists_url":"https://api.github.com/users/patrick26041996/gists{/gist_id}","starred_url":"https://api.github.com/users/patrick26041996/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrick26041996/subscriptions","organizations_url":"https://api.github.com/users/patrick26041996/orgs","repos_url":"https://api.github.com/users/patrick26041996/repos","events_url":"https://api.github.com/users/patrick26041996/events{/privacy}","received_events_url":"https://api.github.com/users/patrick26041996/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/patrick26041996/cutplace","description":"validate data stored in CSV, PRN, ODS or Excel files","fork":true,"url":"https://api.github.com/repos/patrick26041996/cutplace","forks_url":"https://api.github.com/repos/patrick26041996/cutplace/forks","keys_url":"https://api.github.com/repos/patrick26041996/cutplace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/patrick26041996/cutplace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/patrick26041996/cutplace/teams","hooks_url":"https://api.github.com/repos/patrick26041996/cutplace/hooks","issue_events_url":"https://api.github.com/repos/patrick26041996/cutplace/issues/events{/number}","events_url":"https://api.github.com/repos/patrick26041996/cutplace/events","assignees_url":"https://api.github.com/repos/patrick26041996/cutplace/assignees{/user}","branches_url":"https://api.github.com/repos/patrick26041996/cutplace/branches{/branch}","tags_url":"https://api.github.com/repos/patrick26041996/cutplace/tags","blobs_url":"https://api.github.com/repos/patrick26041996/cutplace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/patrick26041996/cutplace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/patrick26041996/cutplace/git/refs{/sha}","trees_url":"https://api.github.com/repos/patrick26041996/cutplace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/patrick26041996/cutplace/statuses/{sha}","languages_url":"https://api.github.com/repos/patrick26041996/cutplace/languages","stargazers_url":"https://api.github.com/repos/patrick26041996/cutplace/stargazers","contributors_url":"https://api.github.com/repos/patrick26041996/cutplace/contributors","subscribers_url":"https://api.github.com/repos/patrick26041996/cutplace/subscribers","subscription_url":"https://api.github.com/repos/patrick26041996/cutplace/subscription","commits_url":"https://api.github.com/repos/patrick26041996/cutplace/commits{/sha}","git_commits_url":"https://api.github.com/repos/patrick26041996/cutplace/git/commits{/sha}","comments_url":"https://api.github.com/repos/patrick26041996/cutplace/comments{/number}","issue_comment_url":"https://api.github.com/repos/patrick26041996/cutplace/issues/comments{/number}","contents_url":"https://api.github.com/repos/patrick26041996/cutplace/contents/{+path}","compare_url":"https://api.github.com/repos/patrick26041996/cutplace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/patrick26041996/cutplace/merges","archive_url":"https://api.github.com/repos/patrick26041996/cutplace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/patrick26041996/cutplace/downloads","issues_url":"https://api.github.com/repos/patrick26041996/cutplace/issues{/number}","pulls_url":"https://api.github.com/repos/patrick26041996/cutplace/pulls{/number}","milestones_url":"https://api.github.com/repos/patrick26041996/cutplace/milestones{/number}","notifications_url":"https://api.github.com/repos/patrick26041996/cutplace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/patrick26041996/cutplace/labels{/name}","releases_url":"https://api.github.com/repos/patrick26041996/cutplace/releases{/id}","created_at":"2015-01-21T09:38:42Z","updated_at":"2015-03-29T15:22:26Z","pushed_at":"2015-03-29T15:22:26Z","git_url":"git://github.com/patrick26041996/cutplace.git","ssh_url":"git@github.com:patrick26041996/cutplace.git","clone_url":"https://github.com/patrick26041996/cutplace.git","svn_url":"https://github.com/patrick26041996/cutplace","homepage":"http://roskakori.github.com/cutplace/","size":7793,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"roskakori:master","ref":"master","sha":"6625c05ac750ada38336e639d41be534a8f07236","user":{"login":"roskakori","id":328726,"avatar_url":"https://avatars.githubusercontent.com/u/328726?v=3","gravatar_id":"","url":"https://api.github.com/users/roskakori","html_url":"https://github.com/roskakori","followers_url":"https://api.github.com/users/roskakori/followers","following_url":"https://api.github.com/users/roskakori/following{/other_user}","gists_url":"https://api.github.com/users/roskakori/gists{/gist_id}","starred_url":"https://api.github.com/users/roskakori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roskakori/subscriptions","organizations_url":"https://api.github.com/users/roskakori/orgs","repos_url":"https://api.github.com/users/roskakori/repos","events_url":"https://api.github.com/users/roskakori/events{/privacy}","received_events_url":"https://api.github.com/users/roskakori/received_events","type":"User","site_admin":false},"repo":{"id":4033448,"name":"cutplace","full_name":"roskakori/cutplace","owner":{"login":"roskakori","id":328726,"avatar_url":"https://avatars.githubusercontent.com/u/328726?v=3","gravatar_id":"","url":"https://api.github.com/users/roskakori","html_url":"https://github.com/roskakori","followers_url":"https://api.github.com/users/roskakori/followers","following_url":"https://api.github.com/users/roskakori/following{/other_user}","gists_url":"https://api.github.com/users/roskakori/gists{/gist_id}","starred_url":"https://api.github.com/users/roskakori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roskakori/subscriptions","organizations_url":"https://api.github.com/users/roskakori/orgs","repos_url":"https://api.github.com/users/roskakori/repos","events_url":"https://api.github.com/users/roskakori/events{/privacy}","received_events_url":"https://api.github.com/users/roskakori/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/roskakori/cutplace","description":"validate data stored in CSV, PRN, ODS or Excel files","fork":false,"url":"https://api.github.com/repos/roskakori/cutplace","forks_url":"https://api.github.com/repos/roskakori/cutplace/forks","keys_url":"https://api.github.com/repos/roskakori/cutplace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/roskakori/cutplace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/roskakori/cutplace/teams","hooks_url":"https://api.github.com/repos/roskakori/cutplace/hooks","issue_events_url":"https://api.github.com/repos/roskakori/cutplace/issues/events{/number}","events_url":"https://api.github.com/repos/roskakori/cutplace/events","assignees_url":"https://api.github.com/repos/roskakori/cutplace/assignees{/user}","branches_url":"https://api.github.com/repos/roskakori/cutplace/branches{/branch}","tags_url":"https://api.github.com/repos/roskakori/cutplace/tags","blobs_url":"https://api.github.com/repos/roskakori/cutplace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/roskakori/cutplace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/roskakori/cutplace/git/refs{/sha}","trees_url":"https://api.github.com/repos/roskakori/cutplace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/roskakori/cutplace/statuses/{sha}","languages_url":"https://api.github.com/repos/roskakori/cutplace/languages","stargazers_url":"https://api.github.com/repos/roskakori/cutplace/stargazers","contributors_url":"https://api.github.com/repos/roskakori/cutplace/contributors","subscribers_url":"https://api.github.com/repos/roskakori/cutplace/subscribers","subscription_url":"https://api.github.com/repos/roskakori/cutplace/subscription","commits_url":"https://api.github.com/repos/roskakori/cutplace/commits{/sha}","git_commits_url":"https://api.github.com/repos/roskakori/cutplace/git/commits{/sha}","comments_url":"https://api.github.com/repos/roskakori/cutplace/comments{/number}","issue_comment_url":"https://api.github.com/repos/roskakori/cutplace/issues/comments{/number}","contents_url":"https://api.github.com/repos/roskakori/cutplace/contents/{+path}","compare_url":"https://api.github.com/repos/roskakori/cutplace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/roskakori/cutplace/merges","archive_url":"https://api.github.com/repos/roskakori/cutplace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/roskakori/cutplace/downloads","issues_url":"https://api.github.com/repos/roskakori/cutplace/issues{/number}","pulls_url":"https://api.github.com/repos/roskakori/cutplace/pulls{/number}","milestones_url":"https://api.github.com/repos/roskakori/cutplace/milestones{/number}","notifications_url":"https://api.github.com/repos/roskakori/cutplace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/roskakori/cutplace/labels{/name}","releases_url":"https://api.github.com/repos/roskakori/cutplace/releases{/id}","created_at":"2012-04-15T17:02:08Z","updated_at":"2015-03-28T17:54:37Z","pushed_at":"2015-03-29T15:23:15Z","git_url":"git://github.com/roskakori/cutplace.git","ssh_url":"git@github.com:roskakori/cutplace.git","clone_url":"https://github.com/roskakori/cutplace.git","svn_url":"https://github.com/roskakori/cutplace","homepage":"http://cutplace.readthedocs.org/","size":8758,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":17,"forks":9,"open_issues":17,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/roskakori/cutplace/pulls/104"},"html":{"href":"https://github.com/roskakori/cutplace/pull/104"},"issue":{"href":"https://api.github.com/repos/roskakori/cutplace/issues/104"},"comments":{"href":"https://api.github.com/repos/roskakori/cutplace/issues/104/comments"},"review_comments":{"href":"https://api.github.com/repos/roskakori/cutplace/pulls/104/comments"},"review_comment":{"href":"https://api.github.com/repos/roskakori/cutplace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/roskakori/cutplace/pulls/104/commits"},"statuses":{"href":"https://api.github.com/repos/roskakori/cutplace/statuses/3fb6b7d38d154158310ac241a385923de0ba8e51"}}}}