home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 464779810 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 2

issue 1

  • Plugin hook for adding extra template context variables · 2 ✖

author_association 1

  • OWNER 2
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
508872137 https://github.com/simonw/datasette/issues/541#issuecomment-508872137 https://api.github.com/repos/simonw/datasette/issues/541 MDEyOklzc3VlQ29tbWVudDUwODg3MjEzNw== simonw 9599 2019-07-05T22:16:57Z 2019-07-05T22:16:57Z OWNER

It should allow for awaitables too, to allow for execution of SQL. For example:

python @hookimpl def extra_template_vars(datasette): async def inner(): first_db = list(datasette.databases.keys())[0] return { "sqlite_version": ( await datasette.execute(first_db, "select sqlite_version()") ).rows[0][0] } return inner

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Plugin hook for adding extra template context variables 464779810  
508871981 https://github.com/simonw/datasette/issues/541#issuecomment-508871981 https://api.github.com/repos/simonw/datasette/issues/541 MDEyOklzc3VlQ29tbWVudDUwODg3MTk4MQ== simonw 9599 2019-07-05T22:15:35Z 2019-07-05T22:15:35Z OWNER

Example usage: python @hookimpl def extra_template_vars(request): return { "auth": request.scope.get("auth"), }

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Plugin hook for adding extra template context variables 464779810  

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