home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

6 rows where "created_at" is on date 2023-05-21 and issue = 1718607907 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 6

issue 1

  • Make as many examples in the CLI docs as possible copy-and-pastable · 6 ✖

author_association 1

  • OWNER 6
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
1556291915 https://github.com/simonw/sqlite-utils/issues/551#issuecomment-1556291915 https://api.github.com/repos/simonw/sqlite-utils/issues/551 IC_kwDOCGYnMM5cwyFL simonw 9599 2023-05-21T21:04:03Z 2023-05-21T21:04:03Z OWNER

Now live at https://sqlite-utils.datasette.io/en/latest/cli.html

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Make as many examples in the CLI docs as possible copy-and-pastable 1718607907  
1556288270 https://github.com/simonw/sqlite-utils/issues/551#issuecomment-1556288270 https://api.github.com/repos/simonw/sqlite-utils/issues/551 IC_kwDOCGYnMM5cwxMO simonw 9599 2023-05-21T20:47:51Z 2023-05-21T20:47:51Z OWNER

This page has all of the changes: https://sqlite-utils--553.org.readthedocs.build/en/553/cli.html#running-sql-queries

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Make as many examples in the CLI docs as possible copy-and-pastable 1718607907  
1556287599 https://github.com/simonw/sqlite-utils/issues/551#issuecomment-1556287599 https://api.github.com/repos/simonw/sqlite-utils/issues/551 IC_kwDOCGYnMM5cwxBv simonw 9599 2023-05-21T20:44:55Z 2023-05-21T20:44:55Z OWNER

Put this in a PR so I can preview it: - #553

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Make as many examples in the CLI docs as possible copy-and-pastable 1718607907  
1556265772 https://github.com/simonw/sqlite-utils/issues/551#issuecomment-1556265772 https://api.github.com/repos/simonw/sqlite-utils/issues/551 IC_kwDOCGYnMM5cwrss simonw 9599 2023-05-21T19:16:15Z 2023-05-21T19:16:15Z OWNER

Another option:

That's using this markup:

``` Newline-delimited JSON ~~~~~~~~~~~~~~~~~~~~~~

Use --nl to get back newline-delimited JSON objects:

.. code-block:: bash

sqlite-utils dogs.db "select * from dogs" --nl

.. code-block:: output

{"id": 1, "age": 4, "name": "Cleo"}
{"id": 2, "age": 2, "name": "Pancakes"}

``` And this extra CSS:

css .highlight-output .highlight { border-left: 9px solid #30c94f; }

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Make as many examples in the CLI docs as possible copy-and-pastable 1718607907  
1556263182 https://github.com/simonw/sqlite-utils/issues/551#issuecomment-1556263182 https://api.github.com/repos/simonw/sqlite-utils/issues/551 IC_kwDOCGYnMM5cwrEO simonw 9599 2023-05-21T19:06:48Z 2023-05-21T19:06:48Z OWNER

I could split them up into two blocks like this:

I do miss the visual indication that one of these is the command and one is the output though.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Make as many examples in the CLI docs as possible copy-and-pastable 1718607907  
1556262574 https://github.com/simonw/sqlite-utils/issues/551#issuecomment-1556262574 https://api.github.com/repos/simonw/sqlite-utils/issues/551 IC_kwDOCGYnMM5cwq6u simonw 9599 2023-05-21T19:04:59Z 2023-05-21T19:04:59Z OWNER

I wrote the docs like this because early examples include both the command and its output:

https://sqlite-utils.datasette.io/en/stable/cli.html#returning-json

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Make as many examples in the CLI docs as possible copy-and-pastable 1718607907  

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