home / github / issue_comments

Menu
  • GraphQL API

issue_comments: 507055345

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/23#issuecomment-507055345 https://api.github.com/repos/simonw/sqlite-utils/issues/23 507055345 MDEyOklzc3VlQ29tbWVudDUwNzA1NTM0NQ== 9599 2019-06-30T18:02:25Z 2019-06-30T18:02:33Z OWNER I have a solution. If I introduce a `db[table_name].update(row_pk, {...})` method I can use that method without the dictionary argument to select a specific row as the "currently editing / last inserted" row in the table context. Then I can support the following: ```python db["events"].update(3).m2m("venues", {...}, pk="id") ``` This means that the `table.m2m()` method will only work in the context of a chain, and will throw an error if you attempt to call it without first using `.insert()` or `.update()` to select a record that you will be manipulating first. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} 449565204  
Powered by Datasette · Queries took 1.156ms