home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 706017416 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 1

  • simonw 4

issue 1

  • sqlite-utils transform sub-command · 4 ✖

author_association 1

  • OWNER 4
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
696567988 https://github.com/simonw/sqlite-utils/issues/164#issuecomment-696567988 https://api.github.com/repos/simonw/sqlite-utils/issues/164 MDEyOklzc3VlQ29tbWVudDY5NjU2Nzk4OA== simonw 9599 2020-09-22T07:57:50Z 2020-09-22T07:57:50Z OWNER

Documentation: https://sqlite-utils.readthedocs.io/en/latest/cli.html#transforming-tables

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
sqlite-utils transform sub-command 706017416  
696520928 https://github.com/simonw/sqlite-utils/issues/164#issuecomment-696520928 https://api.github.com/repos/simonw/sqlite-utils/issues/164 MDEyOklzc3VlQ29tbWVudDY5NjUyMDkyOA== simonw 9599 2020-09-22T05:50:17Z 2020-09-22T05:50:17Z OWNER

Idea for CLI options: --type age integer --drop colname --rename oldname newname --not-null col --not-null-false col --pk new_id --pk-none --default col value --default-none column --drop-foreign-key col other_table other_column

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
sqlite-utils transform sub-command 706017416  
696500922 https://github.com/simonw/sqlite-utils/issues/164#issuecomment-696500922 https://api.github.com/repos/simonw/sqlite-utils/issues/164 MDEyOklzc3VlQ29tbWVudDY5NjUwMDkyMg== simonw 9599 2020-09-22T04:22:40Z 2020-09-22T04:22:40Z OWNER

Documentation for the .transform() method #114 (now landed) is here: https://sqlite-utils.readthedocs.io/en/latest/python-api.html#transforming-a-table

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
sqlite-utils transform sub-command 706017416  
696473559 https://github.com/simonw/sqlite-utils/issues/164#issuecomment-696473559 https://api.github.com/repos/simonw/sqlite-utils/issues/164 MDEyOklzc3VlQ29tbWVudDY5NjQ3MzU1OQ== simonw 9599 2020-09-22T02:10:37Z 2020-09-22T02:10:37Z OWNER

Maybe something like this:

sqlite-utils transform mydb.db mytable -c age integer --rename age dog_age
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
sqlite-utils transform sub-command 706017416  

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
, [performed_via_github_app] TEXT);
CREATE INDEX [idx_issue_comments_issue]
                ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
                ON [issue_comments] ([user]);
Powered by Datasette · Queries took 26.467ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows