home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 785980813

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-785980813 https://api.github.com/repos/simonw/sqlite-utils/issues/239 785980813 MDEyOklzc3VlQ29tbWVudDc4NTk4MDgxMw== 9599 2021-02-25T15:21:02Z 2021-02-25T15:23:47Z OWNER

Maybe the Python version takes an optional dictionary mapping column names to transformation functions? It could then merge all of those results together - and maybe throw an error if the same key is produced by more than one column.

python db["Reports"].extract(["Reported by"], transform={"Reported by": json.loads}) Or it could have an option for different strategies if keys collide: first wins, last wins, throw exception, add a prefix to the new column name. That feels a bit too complex for an edge-case though.

{
    "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 3.161ms · About: github-to-sqlite