home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

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

  • `sqlite-utils bulk --batch-size` option · 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
1022466476 https://github.com/simonw/sqlite-utils/issues/392#issuecomment-1022466476 https://api.github.com/repos/simonw/sqlite-utils/issues/392 IC_kwDOCGYnMM488Zms simonw 9599 2022-01-26T18:17:43Z 2022-01-26T18:17:43Z OWNER

Manually tested it like this: ```

Create database with an empty "lines" table

sqlite-utils create-table bulk-test.db lines line text

Stream records every 0.5s, commit every 5 records

stream-delay docs/python-api.rst -d 500 | \ sqlite-utils bulk bulk-test.db 'insert into lines (line) values (:line)' - \ --lines --batch-size 5 `` Runningdatasette bulk-test.db` showed that records would show up about every 2.5s five at a time.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
`sqlite-utils bulk --batch-size` option 1114640101  
1021877769 https://github.com/simonw/sqlite-utils/issues/392#issuecomment-1021877769 https://api.github.com/repos/simonw/sqlite-utils/issues/392 IC_kwDOCGYnMM486J4J simonw 9599 2022-01-26T05:19:48Z 2022-01-26T05:19:48Z OWNER

Can use this utility function: https://github.com/simonw/sqlite-utils/blob/a9fca7efa4184fbb2a65ca1275c326950ed9d3c1/sqlite_utils/utils.py#L322-L325

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
`sqlite-utils bulk --batch-size` option 1114640101  
1021877058 https://github.com/simonw/sqlite-utils/issues/392#issuecomment-1021877058 https://api.github.com/repos/simonw/sqlite-utils/issues/392 IC_kwDOCGYnMM486JtC simonw 9599 2022-01-26T05:18:12Z 2022-01-26T05:18:18Z OWNER

Help for insert says: --batch-size INTEGER Commit every X records

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
`sqlite-utils bulk --batch-size` option 1114640101  
1021876914 https://github.com/simonw/sqlite-utils/issues/392#issuecomment-1021876914 https://api.github.com/repos/simonw/sqlite-utils/issues/392 IC_kwDOCGYnMM486Jqy simonw 9599 2022-01-26T05:17:49Z 2022-01-26T05:17:49Z OWNER

Relevant code: https://github.com/simonw/sqlite-utils/blob/a9fca7efa4184fbb2a65ca1275c326950ed9d3c1/sqlite_utils/cli.py#L1014-L1018

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
`sqlite-utils bulk --batch-size` option 1114640101  

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