home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 785983837

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/239#issuecomment-785983837 https://api.github.com/repos/simonw/sqlite-utils/issues/239 785983837 MDEyOklzc3VlQ29tbWVudDc4NTk4MzgzNw== 9599 2021-02-25T15:25:21Z 2021-02-25T15:28:57Z OWNER

Problem with calling this argument transform= is that the term "transform" already means something else in this library.

I could use convert= instead.

... but that doesn't instantly make me think of turning a value into multiple columns.

How about expand=? I've not used that term anywhere yet.

db["Reports"].extract(["Reported by"], expand={"Reported by": json.loads})

I think that works. You're expanding a single value into several columns of information.

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