home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 496756348

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/16#issuecomment-496756348 https://api.github.com/repos/simonw/sqlite-utils/issues/16 496756348 MDEyOklzc3VlQ29tbWVudDQ5Njc1NjM0OA== 9599 2019-05-29T02:12:43Z 2019-05-29T02:12:43Z OWNER

For the CLI I'm thinking:

sqlite-utils add-column data.db mytable col text --fk othertable id

So the foreign key is added using --fk othertable othercolumn

If the user doesn't provide the column type we can derive it from the foreign key.

Can we make the othercolumn optional? That would be neat - then we could automatically detect it using the sole primary key of the referenced table.

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