home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 443023308 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

  • Replace most of `.inspect()` (and `datasette inspect`) with table counting · 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
491545952 https://github.com/simonw/datasette/issues/462#issuecomment-491545952 https://api.github.com/repos/simonw/datasette/issues/462 MDEyOklzc3VlQ29tbWVudDQ5MTU0NTk1Mg== simonw 9599 2019-05-11T21:41:49Z 2019-05-11T21:41:49Z OWNER

I now need to update datasette serve ... --inspect-data=X to understand and correctly handle the new format.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Replace most of `.inspect()` (and `datasette inspect`) with table counting 443023308  
491543817 https://github.com/simonw/datasette/issues/462#issuecomment-491543817 https://api.github.com/repos/simonw/datasette/issues/462 MDEyOklzc3VlQ29tbWVudDQ5MTU0MzgxNw== simonw 9599 2019-05-11T21:06:13Z 2019-05-11T21:06:13Z OWNER

I'm going to change it to output to stdout unless you pass it the --inspect-file argument.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Replace most of `.inspect()` (and `datasette inspect`) with table counting 443023308  
491543785 https://github.com/simonw/datasette/issues/462#issuecomment-491543785 https://api.github.com/repos/simonw/datasette/issues/462 MDEyOklzc3VlQ29tbWVudDQ5MTU0Mzc4NQ== simonw 9599 2019-05-11T21:05:54Z 2019-05-11T21:05:54Z OWNER

So I think datasette inspect fixtures.db other.db should output something like this:

json { "fixtures": { "hash": "894870db97229e9e18b40921dc32b581da813465d672445e96e040ab2adbd229", "file": "fixtures.db", "size": 225280, "tables": { "facetable": { "count": 34, } } }

It currently writes it out to a file called inspect-data.json. Should I keep that as the default behaviour or switch it to outputting to stdout instead?

Here's the current datasette inspect --help:

```$ datasette inspect --help Usage: datasette inspect [OPTIONS] [FILES]...

Options: --inspect-file TEXT --load-extension PATH Path to a SQLite extension to load --help Show this message and exit.```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Replace most of `.inspect()` (and `datasette inspect`) with table counting 443023308  
491543635 https://github.com/simonw/datasette/issues/462#issuecomment-491543635 https://api.github.com/repos/simonw/datasette/issues/462 MDEyOklzc3VlQ29tbWVudDQ5MTU0MzYzNQ== simonw 9599 2019-05-11T21:03:10Z 2019-05-11T21:03:23Z OWNER

test_inspect.py currently just contains two tests that exercise a small portion of what .inspect() does - I'm going to repurpose that module and have it only test the datasette inspect CLI command instead.

Here's the current contents of that file: https://github.com/simonw/datasette/blob/ce09e5d2d392634eced44c3c8d603d7c628e2822/tests/test_inspect.py

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Replace most of `.inspect()` (and `datasette inspect`) with table counting 443023308  

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