home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 963527045 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 · 4 ✖

issue 1

  • Document exceptions that can be raised by db.execute() and friends · 4 ✖

author_association 1

  • OWNER 4
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
894864744 https://github.com/simonw/datasette/issues/1424#issuecomment-894864744 https://api.github.com/repos/simonw/datasette/issues/1424 IC_kwDOBm6k_c41Vo1o simonw 9599 2021-08-08T22:27:31Z 2021-08-08T22:27:31Z OWNER

https://docs.python.org/3/library/sqlite3.html#exceptions is useful - it looks like sqlite3.DatabaseError is the super-class of all of the other exceptions that we might see.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Document exceptions that can be raised by db.execute() and friends 963527045  
894864682 https://github.com/simonw/datasette/issues/1424#issuecomment-894864682 https://api.github.com/repos/simonw/datasette/issues/1424 IC_kwDOBm6k_c41Vo0q simonw 9599 2021-08-08T22:26:46Z 2021-08-08T22:26:46Z OWNER

Note that the sqlite3 exceptions are in sqlite3 if using the Python standard library but are in pysqlite3 if that module is being used instead.

So maybe encourage people to use them from datasette.sqlite.sqlite3 instead, which will point to the correct package.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Document exceptions that can be raised by db.execute() and friends 963527045  
894864616 https://github.com/simonw/datasette/issues/1424#issuecomment-894864616 https://api.github.com/repos/simonw/datasette/issues/1424 IC_kwDOBm6k_c41Vozo simonw 9599 2021-08-08T22:26:08Z 2021-08-08T22:26:08Z OWNER
  • datasette.database.QueryInterrupted for queries that were interrupted
  • sqlite3.OperationalError
  • sqlite3.DatabaseError and more
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Document exceptions that can be raised by db.execute() and friends 963527045  
894864404 https://github.com/simonw/datasette/issues/1424#issuecomment-894864404 https://api.github.com/repos/simonw/datasette/issues/1424 IC_kwDOBm6k_c41VowU simonw 9599 2021-08-08T22:24:06Z 2021-08-08T22:24:06Z OWNER

Relevant code: https://github.com/simonw/datasette/blob/de5ce2e56339ad8966f417a4758f7c210c017dec/datasette/database.py#L176-L200

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Document exceptions that can be raised by db.execute() and friends 963527045  

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