home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where author_association = "OWNER", issue = 784628163 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 · 3 ✖

issue 1

  • "Statement may not contain PRAGMA" error is not strictly true · 3 ✖

author_association 1

  • OWNER · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
759069342 https://github.com/simonw/datasette/issues/1185#issuecomment-759069342 https://api.github.com/repos/simonw/datasette/issues/1185 MDEyOklzc3VlQ29tbWVudDc1OTA2OTM0Mg== simonw 9599 2021-01-12T22:13:18Z 2021-01-12T22:13:18Z OWNER

I'm going to change the error message to list the allowed pragmas.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
"Statement may not contain PRAGMA" error is not strictly true 784628163  
759067427 https://github.com/simonw/datasette/issues/1185#issuecomment-759067427 https://api.github.com/repos/simonw/datasette/issues/1185 MDEyOklzc3VlQ29tbWVudDc1OTA2NzQyNw== simonw 9599 2021-01-12T22:09:21Z 2021-01-12T22:09:21Z OWNER

That allow-list was added in #761 but is not currently documented. It's here in the code:

https://github.com/simonw/datasette/blob/8e8fc5cee5c78da8334495c6d6257d5612c40792/datasette/utils/init.py#L173-L186

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
"Statement may not contain PRAGMA" error is not strictly true 784628163  
759066777 https://github.com/simonw/datasette/issues/1185#issuecomment-759066777 https://api.github.com/repos/simonw/datasette/issues/1185 MDEyOklzc3VlQ29tbWVudDc1OTA2Njc3Nw== simonw 9599 2021-01-12T22:07:58Z 2021-01-12T22:07:58Z OWNER

https://docs.datasette.io/en/stable/sql_queries.html?highlight=pragma#named-parameters documentation is out-of-date as well:

Datasette disallows custom SQL containing the string PRAGMA, as SQLite pragma statements can be used to change database settings at runtime. If you need to include the string "pragma" in a query you can do so safely using a named parameter.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
"Statement may not contain PRAGMA" error is not strictly true 784628163  

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