home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 710178871

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/sqlite-utils/issues/182#issuecomment-710178871 https://api.github.com/repos/simonw/sqlite-utils/issues/182 710178871 MDEyOklzc3VlQ29tbWVudDcxMDE3ODg3MQ== 9599 2020-10-16T16:27:39Z 2020-10-16T16:28:14Z OWNER

The file is opened for me by click.File(), which also handles things like - for stdin. But i neee to be able to switch the encoding used to read from that based on the --encoding option.

I think the way to do that is to open the file in binary mode and then wrap it in a codec reader: python fp = codecs.getreader(encoding)(fp)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
711649325  
Powered by Datasette · Queries took 1.621ms · About: github-to-sqlite