home / github

Menu
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where issue = 675839512

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

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

id ▼ html_url issue_url node_id user created_at updated_at author_association body reactions issue performed_via_github_app
671146948 https://github.com/simonw/sqlite-utils/issues/132#issuecomment-671146948 https://api.github.com/repos/simonw/sqlite-utils/issues/132 MDEyOklzc3VlQ29tbWVudDY3MTE0Njk0OA== simonw 9599 2020-08-10T03:26:51Z 2020-08-10T03:26:51Z OWNER For the CLI: $ sqlite-utils enable-wal github.db $ sqlite-utils disable-wal github.db For the Python library: ```python import sqlite_utils db = sqlite_utils.Database("github.db") db.enable_wal() db.disable_wal() mode = db.journal_mode # "wal" or "delete" or others ``` {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Features for enabling and disabling WAL mode 675839512  
671147148 https://github.com/simonw/sqlite-utils/issues/132#issuecomment-671147148 https://api.github.com/repos/simonw/sqlite-utils/issues/132 MDEyOklzc3VlQ29tbWVudDY3MTE0NzE0OA== simonw 9599 2020-08-10T03:27:50Z 2020-08-10T03:27:50Z OWNER https://www.sqlite.org/pragma.html#pragma_journal_mode lists six modes: DELETE | TRUNCATE | PERSIST | MEMORY | WAL | OFF I'm only going to implement utilities for DELETE (wal-off) and WAL (wal-on) - the other modes look like they're for specialist purposes that I don't need to support. If it turns out I do need them I can add those to `sqlite-utils` later. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Features for enabling and disabling WAL mode 675839512  
671147344 https://github.com/simonw/sqlite-utils/issues/132#issuecomment-671147344 https://api.github.com/repos/simonw/sqlite-utils/issues/132 MDEyOklzc3VlQ29tbWVudDY3MTE0NzM0NA== simonw 9599 2020-08-10T03:29:00Z 2020-08-10T03:29:00Z OWNER The CLI options should take multiple database files: $ sqlite-utils enable-wal *.db It's possible for this to fail if the DB is locked. How about a `--retry` option that causes it to retry a bunch of times if that happens? {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Features for enabling and disabling WAL mode 675839512  
671151170 https://github.com/simonw/sqlite-utils/issues/132#issuecomment-671151170 https://api.github.com/repos/simonw/sqlite-utils/issues/132 MDEyOklzc3VlQ29tbWVudDY3MTE1MTE3MA== simonw 9599 2020-08-10T03:52:02Z 2020-08-10T03:52:02Z OWNER I'm having trouble figuring out how to write a test that locks a SQLite database (so I can test that `--retry` actually works). I tried this recipe but it didn't seem to prevent another process from running `pragma journal_mode='wal';` against that database: ```python import time import sys import sqlite3 filename = sys.argv[-1] db = sqlite3.connect(filename) with db: db.execute("create table if not exists counter(id integer primary key, counter text)") time.sleep(100) ``` {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Features for enabling and disabling WAL mode 675839512  
671151461 https://github.com/simonw/sqlite-utils/issues/132#issuecomment-671151461 https://api.github.com/repos/simonw/sqlite-utils/issues/132 MDEyOklzc3VlQ29tbWVudDY3MTE1MTQ2MQ== simonw 9599 2020-08-10T03:54:06Z 2020-08-10T03:54:06Z OWNER For the moment I'll build it without the `--retry` mode. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} Features for enabling and disabling WAL mode 675839512  

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 17.665ms · About: simonw/datasette-graphql
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows