{"action":"created","comment":{"url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/comments/41515527","id":41515527,"diff_hunk":"@@ -0,0 +1,55 @@\n+\"\"\"\n+System Tables and Views\n+\n+Amazon Redshift has many system tables and views that contain information\n+about how the system is functioning. This module contains SQLAlchemy\n+Declarative models for these tables.\n+\"\"\"\n+\n+\n+import sqlalchemy as sa\n+from sqlalchemy.ext import declarative\n+\n+\n+Base = declarative.declarative_base()\n+\n+\n+class STLUnloadLog(Base):\n+    \"\"\"\n+    Records the details for an unload operation.\n+\n+    STL_UNLOAD_LOG records one row for each file created by an UNLOAD\n+    statement. For example, if an UNLOAD creates 12 files, STL_UNLOAD_LOG will\n+    contain 12 corresponding rows.\n+\n+    This table is visible to all users.\n+    \"\"\"\n+\n+    __tablename__ = 'STL_UNLOAD_LOG'\n+\n+    user_id = sa.Column('userid', sa.Integer())\n+    \"\"\"ID of the user who generated the entry.\"\"\"\n+\n+    query_id = sa.Column('query', sa.Integer(), primary_key=True)\n+    \"\"\"ID for the transaction.\"\"\"","path":"redshift_sqlalchemy/models.py","position":34,"original_position":34,"commit_id":"b28055c6e5822001584adb4b68ea67a24cf2dd1c","original_commit_id":"b28055c6e5822001584adb4b68ea67a24cf2dd1c","user":{"login":"jklukas","id":691060,"avatar_url":"https://avatars.githubusercontent.com/u/691060?v=3","gravatar_id":"","url":"https://api.github.com/users/jklukas","html_url":"https://github.com/jklukas","followers_url":"https://api.github.com/users/jklukas/followers","following_url":"https://api.github.com/users/jklukas/following{/other_user}","gists_url":"https://api.github.com/users/jklukas/gists{/gist_id}","starred_url":"https://api.github.com/users/jklukas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jklukas/subscriptions","organizations_url":"https://api.github.com/users/jklukas/orgs","repos_url":"https://api.github.com/users/jklukas/repos","events_url":"https://api.github.com/users/jklukas/events{/privacy}","received_events_url":"https://api.github.com/users/jklukas/received_events","type":"User","site_admin":false},"body":"As long as `query_id` is guaranteed to be unique, that seems reasonable.","created_at":"2015-10-08T13:57:39Z","updated_at":"2015-10-08T13:57:39Z","html_url":"https://github.com/graingert/redshift_sqlalchemy/pull/54#discussion_r41515527","pull_request_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/comments/41515527"},"html":{"href":"https://github.com/graingert/redshift_sqlalchemy/pull/54#discussion_r41515527"},"pull_request":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/54","id":47152604,"html_url":"https://github.com/graingert/redshift_sqlalchemy/pull/54","diff_url":"https://github.com/graingert/redshift_sqlalchemy/pull/54.diff","patch_url":"https://github.com/graingert/redshift_sqlalchemy/pull/54.patch","issue_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/issues/54","number":54,"state":"open","locked":false,"title":"Add the STL_UNLOAD_LOG model","user":{"login":"graingert","id":413772,"avatar_url":"https://avatars.githubusercontent.com/u/413772?v=3","gravatar_id":"","url":"https://api.github.com/users/graingert","html_url":"https://github.com/graingert","followers_url":"https://api.github.com/users/graingert/followers","following_url":"https://api.github.com/users/graingert/following{/other_user}","gists_url":"https://api.github.com/users/graingert/gists{/gist_id}","starred_url":"https://api.github.com/users/graingert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graingert/subscriptions","organizations_url":"https://api.github.com/users/graingert/orgs","repos_url":"https://api.github.com/users/graingert/repos","events_url":"https://api.github.com/users/graingert/events{/privacy}","received_events_url":"https://api.github.com/users/graingert/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-10-08T13:32:24Z","updated_at":"2015-10-08T13:57:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57a9f8d02b0b58c703c05b4fed6391fa916fa8eb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/54/commits","review_comments_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/54/comments","review_comment_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/issues/54/comments","statuses_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/statuses/b28055c6e5822001584adb4b68ea67a24cf2dd1c","head":{"label":"graingert:start-work-on-a-system-models-module","ref":"start-work-on-a-system-models-module","sha":"b28055c6e5822001584adb4b68ea67a24cf2dd1c","user":{"login":"graingert","id":413772,"avatar_url":"https://avatars.githubusercontent.com/u/413772?v=3","gravatar_id":"","url":"https://api.github.com/users/graingert","html_url":"https://github.com/graingert","followers_url":"https://api.github.com/users/graingert/followers","following_url":"https://api.github.com/users/graingert/following{/other_user}","gists_url":"https://api.github.com/users/graingert/gists{/gist_id}","starred_url":"https://api.github.com/users/graingert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graingert/subscriptions","organizations_url":"https://api.github.com/users/graingert/orgs","repos_url":"https://api.github.com/users/graingert/repos","events_url":"https://api.github.com/users/graingert/events{/privacy}","received_events_url":"https://api.github.com/users/graingert/received_events","type":"User","site_admin":false},"repo":{"id":35280897,"name":"redshift_sqlalchemy","full_name":"graingert/redshift_sqlalchemy","owner":{"login":"graingert","id":413772,"avatar_url":"https://avatars.githubusercontent.com/u/413772?v=3","gravatar_id":"","url":"https://api.github.com/users/graingert","html_url":"https://github.com/graingert","followers_url":"https://api.github.com/users/graingert/followers","following_url":"https://api.github.com/users/graingert/following{/other_user}","gists_url":"https://api.github.com/users/graingert/gists{/gist_id}","starred_url":"https://api.github.com/users/graingert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graingert/subscriptions","organizations_url":"https://api.github.com/users/graingert/orgs","repos_url":"https://api.github.com/users/graingert/repos","events_url":"https://api.github.com/users/graingert/events{/privacy}","received_events_url":"https://api.github.com/users/graingert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/graingert/redshift_sqlalchemy","description":"Amazon Redshift SQLAlchemy Dialect","fork":true,"url":"https://api.github.com/repos/graingert/redshift_sqlalchemy","forks_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/forks","keys_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/teams","hooks_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/hooks","issue_events_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/issues/events{/number}","events_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/events","assignees_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/assignees{/user}","branches_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/branches{/branch}","tags_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/tags","blobs_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/git/refs{/sha}","trees_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/statuses/{sha}","languages_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/languages","stargazers_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/stargazers","contributors_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/contributors","subscribers_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/subscribers","subscription_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/subscription","commits_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/commits{/sha}","git_commits_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/git/commits{/sha}","comments_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/comments{/number}","issue_comment_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/issues/comments{/number}","contents_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/contents/{+path}","compare_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/merges","archive_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/downloads","issues_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/issues{/number}","pulls_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls{/number}","milestones_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/milestones{/number}","notifications_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/labels{/name}","releases_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/releases{/id}","created_at":"2015-05-08T13:29:24Z","updated_at":"2015-09-26T22:07:24Z","pushed_at":"2015-10-08T13:32:24Z","git_url":"git://github.com/graingert/redshift_sqlalchemy.git","ssh_url":"git@github.com:graingert/redshift_sqlalchemy.git","clone_url":"https://github.com/graingert/redshift_sqlalchemy.git","svn_url":"https://github.com/graingert/redshift_sqlalchemy","homepage":null,"size":1112,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":6,"default_branch":"master"}},"base":{"label":"graingert:master","ref":"master","sha":"cf887d93ebc5314d70b99a6225c311ad6c434bb3","user":{"login":"graingert","id":413772,"avatar_url":"https://avatars.githubusercontent.com/u/413772?v=3","gravatar_id":"","url":"https://api.github.com/users/graingert","html_url":"https://github.com/graingert","followers_url":"https://api.github.com/users/graingert/followers","following_url":"https://api.github.com/users/graingert/following{/other_user}","gists_url":"https://api.github.com/users/graingert/gists{/gist_id}","starred_url":"https://api.github.com/users/graingert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graingert/subscriptions","organizations_url":"https://api.github.com/users/graingert/orgs","repos_url":"https://api.github.com/users/graingert/repos","events_url":"https://api.github.com/users/graingert/events{/privacy}","received_events_url":"https://api.github.com/users/graingert/received_events","type":"User","site_admin":false},"repo":{"id":35280897,"name":"redshift_sqlalchemy","full_name":"graingert/redshift_sqlalchemy","owner":{"login":"graingert","id":413772,"avatar_url":"https://avatars.githubusercontent.com/u/413772?v=3","gravatar_id":"","url":"https://api.github.com/users/graingert","html_url":"https://github.com/graingert","followers_url":"https://api.github.com/users/graingert/followers","following_url":"https://api.github.com/users/graingert/following{/other_user}","gists_url":"https://api.github.com/users/graingert/gists{/gist_id}","starred_url":"https://api.github.com/users/graingert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graingert/subscriptions","organizations_url":"https://api.github.com/users/graingert/orgs","repos_url":"https://api.github.com/users/graingert/repos","events_url":"https://api.github.com/users/graingert/events{/privacy}","received_events_url":"https://api.github.com/users/graingert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/graingert/redshift_sqlalchemy","description":"Amazon Redshift SQLAlchemy Dialect","fork":true,"url":"https://api.github.com/repos/graingert/redshift_sqlalchemy","forks_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/forks","keys_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/teams","hooks_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/hooks","issue_events_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/issues/events{/number}","events_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/events","assignees_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/assignees{/user}","branches_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/branches{/branch}","tags_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/tags","blobs_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/git/refs{/sha}","trees_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/statuses/{sha}","languages_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/languages","stargazers_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/stargazers","contributors_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/contributors","subscribers_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/subscribers","subscription_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/subscription","commits_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/commits{/sha}","git_commits_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/git/commits{/sha}","comments_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/comments{/number}","issue_comment_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/issues/comments{/number}","contents_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/contents/{+path}","compare_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/merges","archive_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/downloads","issues_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/issues{/number}","pulls_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls{/number}","milestones_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/milestones{/number}","notifications_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/labels{/name}","releases_url":"https://api.github.com/repos/graingert/redshift_sqlalchemy/releases{/id}","created_at":"2015-05-08T13:29:24Z","updated_at":"2015-09-26T22:07:24Z","pushed_at":"2015-10-08T13:32:24Z","git_url":"git://github.com/graingert/redshift_sqlalchemy.git","ssh_url":"git@github.com:graingert/redshift_sqlalchemy.git","clone_url":"https://github.com/graingert/redshift_sqlalchemy.git","svn_url":"https://github.com/graingert/redshift_sqlalchemy","homepage":null,"size":1112,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/54"},"html":{"href":"https://github.com/graingert/redshift_sqlalchemy/pull/54"},"issue":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/issues/54"},"comments":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/graingert/redshift_sqlalchemy/statuses/b28055c6e5822001584adb4b68ea67a24cf2dd1c"}}}}