home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

7 rows where author_association = "OWNER", issue = 413868452 and user = 9599 sorted by updated_at descending

✖
✖
✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • simonw · 7 ✖

issue 1

  • Improve and document foreign_keys=... argument to insert/create/etc · 7 ✖

author_association 1

  • OWNER · 7 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
466830869 https://github.com/simonw/sqlite-utils/issues/17#issuecomment-466830869 https://api.github.com/repos/simonw/sqlite-utils/issues/17 MDEyOklzc3VlQ29tbWVudDQ2NjgzMDg2OQ== simonw 9599 2019-02-24T23:45:48Z 2019-02-24T23:45:48Z OWNER

Both projects have been upgraded.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Improve and document foreign_keys=... argument to insert/create/etc 413868452  
466828503 https://github.com/simonw/sqlite-utils/issues/17#issuecomment-466828503 https://api.github.com/repos/simonw/sqlite-utils/issues/17 MDEyOklzc3VlQ29tbWVudDQ2NjgyODUwMw== simonw 9599 2019-02-24T23:15:26Z 2019-02-24T23:15:26Z OWNER

Released: https://sqlite-utils.readthedocs.io/en/latest/changelog.html#v0-14

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Improve and document foreign_keys=... argument to insert/create/etc 413868452  
466827533 https://github.com/simonw/sqlite-utils/issues/17#issuecomment-466827533 https://api.github.com/repos/simonw/sqlite-utils/issues/17 MDEyOklzc3VlQ29tbWVudDQ2NjgyNzUzMw== simonw 9599 2019-02-24T23:03:29Z 2019-02-24T23:03:29Z OWNER

Need to put out a new release of sqlite-utils so db-to-sqlite can depend on it.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Improve and document foreign_keys=... argument to insert/create/etc 413868452  
466823422 https://github.com/simonw/sqlite-utils/issues/17#issuecomment-466823422 https://api.github.com/repos/simonw/sqlite-utils/issues/17 MDEyOklzc3VlQ29tbWVudDQ2NjgyMzQyMg== simonw 9599 2019-02-24T22:20:05Z 2019-02-24T22:20:05Z OWNER

Re-opening this until I've fixed the other two projects.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Improve and document foreign_keys=... argument to insert/create/etc 413868452  
466821200 https://github.com/simonw/sqlite-utils/issues/17#issuecomment-466821200 https://api.github.com/repos/simonw/sqlite-utils/issues/17 MDEyOklzc3VlQ29tbWVudDQ2NjgyMTIwMA== simonw 9599 2019-02-24T21:55:08Z 2019-02-24T21:55:54Z OWNER

This involves a breaking API change. I need to call that out in the README and also fix my two other projects which use the old four-tuple version of foreign_keys=:

https://github.com/simonw/db-to-sqlite/blob/c2f8e93bc6bbdfd135de3656ea0f497859ae49ff/db_to_sqlite/cli.py#L30-L42

And

https://github.com/simonw/russian-ira-facebook-ads-datasette/blob/e7106710abdd7bdcae035bedd8bdaba75ae56a12/fetch_and_build_russian_ads.py#L71-L74

I'll also need to set a minimum version for sqlite-utils in the db-to-sqlite setup.py:

https://github.com/simonw/db-to-sqlite/blob/c2f8e93bc6bbdfd135de3656ea0f497859ae49ff/setup.py#L25

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Improve and document foreign_keys=... argument to insert/create/etc 413868452  
466820188 https://github.com/simonw/sqlite-utils/issues/17#issuecomment-466820188 https://api.github.com/repos/simonw/sqlite-utils/issues/17 MDEyOklzc3VlQ29tbWVudDQ2NjgyMDE4OA== simonw 9599 2019-02-24T21:42:50Z 2019-02-24T21:42:50Z OWNER

Sanity checking those foreign keys would be worthwhile.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Improve and document foreign_keys=... argument to insert/create/etc 413868452  
466820167 https://github.com/simonw/sqlite-utils/issues/17#issuecomment-466820167 https://api.github.com/repos/simonw/sqlite-utils/issues/17 MDEyOklzc3VlQ29tbWVudDQ2NjgyMDE2Nw== simonw 9599 2019-02-24T21:42:33Z 2019-02-24T21:42:33Z OWNER

It looks like the type information isn't actually used for anything at all, so this:

https://github.com/simonw/sqlite-utils/blob/f8d3b7cfe5c1950b0749d40eb2640df50b52f651/tests/test_create.py#L97-L103

Could actually be written like this:

fresh_db["m2m"].insert( {"one_id": 1, "two_id": 1}, foreign_keys=( ("one_id", "one", "id"), ("two_id", "two", "id"), ), )

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Improve and document foreign_keys=... argument to insert/create/etc 413868452  

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 473.335ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows