home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 696423066

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/114#issuecomment-696423066 https://api.github.com/repos/simonw/sqlite-utils/issues/114 696423066 MDEyOklzc3VlQ29tbWVudDY5NjQyMzA2Ng== 9599 2020-09-21T22:59:01Z 2020-09-21T22:59:01Z OWNER

I'm rethinking the API design now. Maybe it could look like this:

To change the type of the author_id column from text to int: python books.transform({"author_id": int}) This would leave the existing columns alone, but would change the type of this column.

To rename author_id to author_identifier: python books.transform(rename={"author_id": "author_identifier"}) To drop a column: python books.transform(drop=["author_id"]) Since the parameters all operate on columns they don't need to be called drop_column and rename_column.

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