home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 696485791

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/pull/161#issuecomment-696485791 https://api.github.com/repos/simonw/sqlite-utils/issues/161 696485791 MDEyOklzc3VlQ29tbWVudDY5NjQ4NTc5MQ== 9599 2020-09-22T03:10:15Z 2020-09-22T03:10:15Z OWNER

Design decision needed on foreign keys: what does the syntax look like for removing an existing foreign key?

Since I already have a good implementation of add_foreign_key() I'm tempted to only support dropping them. Maybe like this:

python table.transform(drop_foreign_keys=[("author_id", "author", "id")]) It's a bit crufty but it's such a rare use-case that I think this will be good enough.

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