home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1538910894

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/538#issuecomment-1538910894 https://api.github.com/repos/simonw/sqlite-utils/issues/538 1538910894 IC_kwDOCGYnMM5buequ 9599 2023-05-08T19:16:52Z 2023-05-08T19:17:00Z OWNER

How about if I had logic which checked that all not-null columns were provided in the call to upsert_all() - and if they were, modified the INSERT OR IGNORE INTO to include a placeholder value for those columns that would then be fixed by the later UPDATE?

Something like this:

python [ ('INSERT OR IGNORE INTO [comments]([id], name) VALUES(?, ?);', [1, '']), ('UPDATE [comments] SET [name] = ? WHERE [id] = ?', ['Cleo', 1]) ]

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