home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

7 rows where "updated_at" is on date 2022-09-09 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: issue_url, created_at (date), updated_at (date)

user 3

  • simonw 5
  • ryanfox 1
  • ocdtrekkie 1

issue 2

  • Database() constructor currently defaults is_mutable to False 5
  • Specify foreign key against compound key in other table 2

author_association 2

  • OWNER 5
  • NONE 2
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
1242513223 https://github.com/simonw/sqlite-utils/issues/487#issuecomment-1242513223 https://api.github.com/repos/simonw/sqlite-utils/issues/487 IC_kwDOCGYnMM5KDz9H ryanfox 540968 2022-09-09T22:01:10Z 2022-09-09T22:01:10Z NONE

Perfect. Apologies, I searched but didn’t see that one for some reason. Thank you.

On Fri, Sep 9, 2022 at 3:04 PM Simon Willison @.***> wrote:

This isn't supported yet - there's an older issue for that here:

  • 117 https://github.com/simonw/sqlite-utils/issues/117

— Reply to this email directly, view it on GitHub https://github.com/simonw/sqlite-utils/issues/487#issuecomment-1242409766, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEECKBODHZCKWTN5OO6RI3V5OJ5RANCNFSM6AAAAAAQIV3YIU . You are receiving this because you authored the thread.Message ID: @.***>

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Specify foreign key against compound key in other table 1367835380  
1242409766 https://github.com/simonw/sqlite-utils/issues/487#issuecomment-1242409766 https://api.github.com/repos/simonw/sqlite-utils/issues/487 IC_kwDOCGYnMM5KDasm simonw 9599 2022-09-09T20:04:30Z 2022-09-09T20:04:30Z OWNER

This isn't supported yet - there's an older issue for that here:

  • 117

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Specify foreign key against compound key in other table 1367835380  
1242203798 https://github.com/simonw/datasette/issues/1808#issuecomment-1242203798 https://api.github.com/repos/simonw/datasette/issues/1808 IC_kwDOBm6k_c5KCoaW simonw 9599 2022-09-09T16:36:23Z 2022-09-09T16:37:57Z OWNER

Yes, it should do - actually this fix to datasette-upload-dbs should sort that out even if you don't upgrade to the (unreleased) latest Datasette: - https://github.com/simonw/datasette-upload-dbs/issues/6

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Database() constructor currently defaults is_mutable to False 1368030952  
1242204717 https://github.com/simonw/datasette/issues/1808#issuecomment-1242204717 https://api.github.com/repos/simonw/datasette/issues/1808 IC_kwDOBm6k_c5KCoot simonw 9599 2022-09-09T16:37:12Z 2022-09-09T16:37:12Z OWNER

Updated documentation: https://docs.datasette.io/en/latest/internals.html#database-ds-path-none-is-mutable-true-is-memory-false-memory-name-none

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Database() constructor currently defaults is_mutable to False 1368030952  
1242187519 https://github.com/simonw/datasette/issues/1808#issuecomment-1242187519 https://api.github.com/repos/simonw/datasette/issues/1808 IC_kwDOBm6k_c5KCkb_ ocdtrekkie 4399499 2022-09-09T16:22:19Z 2022-09-09T16:22:19Z NONE

@simonw Will upload_csvs treat that as a database it can import to if you set it as mutable?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Database() constructor currently defaults is_mutable to False 1368030952  
1242181891 https://github.com/simonw/datasette/issues/1808#issuecomment-1242181891 https://api.github.com/repos/simonw/datasette/issues/1808 IC_kwDOBm6k_c5KCjED simonw 9599 2022-09-09T16:18:54Z 2022-09-09T16:18:54Z OWNER

Weirdly _memory was being treated as immutable too - which doesn't really make sense, since it's not a file on disk that can be opened in immutable mode. Fixing that too.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Database() constructor currently defaults is_mutable to False 1368030952  
1242164484 https://github.com/simonw/datasette/issues/1808#issuecomment-1242164484 https://api.github.com/repos/simonw/datasette/issues/1808 IC_kwDOBm6k_c5KCe0E simonw 9599 2022-09-09T16:03:36Z 2022-09-09T16:05:08Z OWNER

Fixing this is technically a breaking change, but to my knowledge there are VERY few plugins out there that use this particular API directly - and I would be extremely surprised if any of them actually relied on it using this default.

(Good thing I've not shipped 1.0 yet though!)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Database() constructor currently defaults is_mutable to False 1368030952  

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
, [performed_via_github_app] TEXT);
CREATE INDEX [idx_issue_comments_issue]
                ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
                ON [issue_comments] ([user]);
Powered by Datasette · Queries took 567.787ms · About: github-to-sqlite