home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where author_association = "NONE" and user = 39538958 sorted by updated_at descending

✖
✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

issue 3

  • DigitalOcean buildpack memory errors for large sqlite db? 1
  • devrel/python api: Pylance type hinting 1
  • Litestream-restored db: errors on 3.11 and 3.10.8; but works on py3.10.7 and 3.10.6 1

user 1

  • justmars · 3 ✖

author_association 1

  • NONE · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
1532304714 https://github.com/simonw/datasette/issues/2067#issuecomment-1532304714 https://api.github.com/repos/simonw/datasette/issues/2067 IC_kwDOBm6k_c5bVR1K justmars 39538958 2023-05-03T00:16:03Z 2023-05-03T00:16:03Z NONE

Curiously, after running commands on the database that was litestream-restored, datasette starts to work again, e.g.

```sh litestream restore -o data/db.sqlite s3://mytestbucketxx/db datasette data/db.sqlite

fails (OperationalError described above)

```

```sh litestream restore -o data/db.sqlite s3://mytestbucketxx/db sqlite-utils enable-wal data/db.sqlite datasette data/db.sqlite

works

```

```sh litestream restore -o data/db.sqlite s3://mytestbucketxx/db sqlite-utils optimize data/db.sqlite datasette data/db.sqlite

works

```

```sh litestream restore -o data/db.sqlite s3://mytestbucketxx/db sqlite3 data/db.sqlite ".clone test.db" datasette test.db

works

```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Litestream-restored db: errors on 3.11 and 3.10.8; but works on py3.10.7 and 3.10.6 1690765434  
1294408928 https://github.com/simonw/sqlite-utils/issues/496#issuecomment-1294408928 https://api.github.com/repos/simonw/sqlite-utils/issues/496 IC_kwDOCGYnMM5NJxzg justmars 39538958 2022-10-28T03:36:56Z 2022-10-28T03:37:50Z NONE

With respect to the typing of Table class itself, my interim solution:

python from sqlite_utils.db import Table def tbl(self, table_name: str) -> Table: tbl = self.db[table_name] if isinstance(tbl, Table): return tbl raise Exception(f"Missing {table_name=}")

With respect to @chapmanjacobd concern on the DEFAULT being an empty class, have also been using # type: ignore, e.g.

python @classmethod def insert_list(cls, areas: list[str]): return meta.tbl(meta.Areas).insert_all( ({"area": a} for a in areas), ignore=True # type: ignore )

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
devrel/python api: Pylance type hinting 1393202060  
721547177 https://github.com/simonw/datasette/issues/1082#issuecomment-721547177 https://api.github.com/repos/simonw/datasette/issues/1082 MDEyOklzc3VlQ29tbWVudDcyMTU0NzE3Nw== justmars 39538958 2020-11-04T06:52:30Z 2020-11-04T06:53:16Z NONE

I think I tried the same db size on the following scenarios in Digital Ocean: 1. Basic ($5/month) with 512MB RAM 2. Basic ($10/month) with 1GB RAM 3. Pro ($12/month) with 1GB RAM

All such attempts conked out with "out of memory" errors

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
DigitalOcean buildpack memory errors for large sqlite db? 735852274  

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