home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 696432690

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-696432690 https://api.github.com/repos/simonw/sqlite-utils/issues/114 696432690 MDEyOklzc3VlQ29tbWVudDY5NjQzMjY5MA== 9599 2020-09-21T23:26:32Z 2020-09-21T23:27:38Z OWNER

To expand on what that first argument - the columns argument - does. Say you have a table like this: id integer name text age text Any columns omitted from the columns= argument are left alone - they have to be explicitly dropped using drop= if you want to drop them.

Any new columns are added (at the end of the table):

table.tranform({"size": float})

Any columns that have their type changed will have their type changed:

table.tranform({"age": int})

Should I also re-order columns if the order doesn't match? I think so. Open question as to what happens to columns that aren't mentioned at all in the dictionary though - what order should they go in?

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