home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

10 rows where issue = 1773458985 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • simonw 9
  • codecov[bot] 1

author_association 2

  • OWNER 9
  • NONE 1

issue 1

  • Use sqlean if available in environment · 10 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
1606270887 https://github.com/simonw/sqlite-utils/pull/560#issuecomment-1606270887 https://api.github.com/repos/simonw/sqlite-utils/issues/560 IC_kwDOCGYnMM5fvb-n simonw 9599 2023-06-25T21:37:12Z 2023-06-26T08:21:00Z OWNER

On my own laptop I got a crash running the tests - details here:

  • https://github.com/nalgeon/sqlean.py/issues/3
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Use sqlean if available in environment 1773458985  
1606237836 https://github.com/simonw/sqlite-utils/pull/560#issuecomment-1606237836 https://api.github.com/repos/simonw/sqlite-utils/issues/560 IC_kwDOCGYnMM5fvT6M codecov[bot] 22429695 2023-06-25T19:49:45Z 2023-06-26T08:20:59Z NONE

Codecov Report

Patch coverage: 80.55% and project coverage change: -0.15 :warning:

Comparison is base (2747257) 96.36% compared to head (5e7d27e) 96.22%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #560 +/- ## ========================================== - Coverage 96.36% 96.22% -0.15% ========================================== Files 6 6 Lines 2726 2752 +26 ========================================== + Hits 2627 2648 +21 - Misses 99 104 +5 ``` | [Impacted Files](https://app.codecov.io/gh/simonw/sqlite-utils/pull/560?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Simon+Willison) | Coverage Δ | | |---|---|---| | [sqlite\_utils/utils.py](https://app.codecov.io/gh/simonw/sqlite-utils/pull/560?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Simon+Willison#diff-c3FsaXRlX3V0aWxzL3V0aWxzLnB5) | `94.56% <63.63%> (-0.62%)` | :arrow_down: | | [sqlite\_utils/db.py](https://app.codecov.io/gh/simonw/sqlite-utils/pull/560?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Simon+Willison#diff-c3FsaXRlX3V0aWxzL2RiLnB5) | `97.33% <86.36%> (-0.20%)` | :arrow_down: | | [sqlite\_utils/cli.py](https://app.codecov.io/gh/simonw/sqlite-utils/pull/560?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Simon+Willison#diff-c3FsaXRlX3V0aWxzL2NsaS5weQ==) | `95.22% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Use sqlean if available in environment 1773458985  
1606315321 https://github.com/simonw/sqlite-utils/pull/560#issuecomment-1606315321 https://api.github.com/repos/simonw/sqlite-utils/issues/560 IC_kwDOCGYnMM5fvm05 simonw 9599 2023-06-25T23:18:33Z 2023-06-25T23:18:33Z OWNER

Documentation preview: https://sqlite-utils--560.org.readthedocs.build/en/560/installation.html#alternatives-to-sqlite3

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Use sqlean if available in environment 1773458985  
1606310630 https://github.com/simonw/sqlite-utils/pull/560#issuecomment-1606310630 https://api.github.com/repos/simonw/sqlite-utils/issues/560 IC_kwDOCGYnMM5fvlrm simonw 9599 2023-06-25T23:06:07Z 2023-06-25T23:06:07Z OWNER

Filed an issue about the above with pysqlite3 (which sqlean.py is based on) here: - https://github.com/coleifer/pysqlite3/issues/58

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Use sqlean if available in environment 1773458985  
1606297356 https://github.com/simonw/sqlite-utils/pull/560#issuecomment-1606297356 https://api.github.com/repos/simonw/sqlite-utils/issues/560 IC_kwDOCGYnMM5fvicM simonw 9599 2023-06-25T22:42:41Z 2023-06-25T22:42:41Z OWNER

Yes that does seem to do the trick: ```pycon

import sqlean db = sqlean.connect("/tmp/4.db") db.execute('PRAGMA journal_mode;').fetchall() [('delete',)] db.isolation_level '' db.execute('PRAGMA journal_mode=wal;') Traceback (most recent call last): File "<stdin>", line 1, in <module> sqlean.dbapi2.OperationalError: cannot change into wal mode from within a transaction db.isolation_level = None db.isolation_level db.execute('PRAGMA journal_mode=wal;') <sqlean.dbapi2.Cursor object at 0x104437c20> `` Weird howisolation_levelof empty string causes the error, but setting that toNone` fixes the error.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Use sqlean if available in environment 1773458985  
1606294627 https://github.com/simonw/sqlite-utils/pull/560#issuecomment-1606294627 https://api.github.com/repos/simonw/sqlite-utils/issues/560 IC_kwDOCGYnMM5fvhxj simonw 9599 2023-06-25T22:40:10Z 2023-06-25T22:40:10Z OWNER

I suspect this has something to do with autocommit mode in sqlite3 - which I may be able to turn off by setting con.isolation_level = None.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Use sqlean if available in environment 1773458985  
1606293382 https://github.com/simonw/sqlite-utils/pull/560#issuecomment-1606293382 https://api.github.com/repos/simonw/sqlite-utils/issues/560 IC_kwDOCGYnMM5fvheG simonw 9599 2023-06-25T22:34:47Z 2023-06-25T22:34:47Z OWNER

```pycon

import sqlite3 db = sqlite3.connect("/tmp/1.db") db.execute('PRAGMA journal_mode=wal;') <sqlite3.Cursor object at 0x102475ec0> import sqlean db2 = sqlean.connect("/tmp/2.db") db2.execute('PRAGMA journal_mode=wal;') Traceback (most recent call last): File "<stdin>", line 1, in <module> sqlean.dbapi2.OperationalError: cannot change into wal mode from within a transaction ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Use sqlean if available in environment 1773458985  
1606290917 https://github.com/simonw/sqlite-utils/pull/560#issuecomment-1606290917 https://api.github.com/repos/simonw/sqlite-utils/issues/560 IC_kwDOCGYnMM5fvg3l simonw 9599 2023-06-25T22:32:28Z 2023-06-25T22:32:28Z OWNER

I've fixed most of the test failures, but I still need to fix this one:

cannot change into wal mode from within a transaction

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Use sqlean if available in environment 1773458985  
1606273005 https://github.com/simonw/sqlite-utils/pull/560#issuecomment-1606273005 https://api.github.com/repos/simonw/sqlite-utils/issues/560 IC_kwDOCGYnMM5fvcft simonw 9599 2023-06-25T21:47:47Z 2023-06-25T21:47:47Z OWNER

I can use https://github.com/simonw/sqlite-dump as an optional dependency to handle the missing .iterdump() method.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Use sqlean if available in environment 1773458985  
1606270055 https://github.com/simonw/sqlite-utils/pull/560#issuecomment-1606270055 https://api.github.com/repos/simonw/sqlite-utils/issues/560 IC_kwDOCGYnMM5fvbxn simonw 9599 2023-06-25T21:31:56Z 2023-06-25T21:31:56Z OWNER

Lots of failures now that I'm trying to run the tests against sqlean.py on macOS and Python 3.10: https://github.com/simonw/sqlite-utils/actions/runs/5371800108/jobs/9744802953

A bunch of these, because pysqlite3 chooses not to implement .iterdump(): ``` @pytest.fixture def db_to_analyze_path(db_to_analyze, tmpdir): path = str(tmpdir / "test.db") db = sqlite3.connect(path)

  db.executescript("\n".join(db_to_analyze.conn.iterdump()))

E AttributeError: 'sqlean.dbapi2.Connection' object has no attribute 'iterdump' Also some of these: def test_analyze_whole_database(db): assert set(db.table_names()) == {"one_index", "two_indexes"} db.analyze() assert set(db.table_names()) == {"one_index", "two_indexes", "sqlite_stat1"} E AssertionError: assert {'one_index',...'two_indexes'} == {'one_index',...'two_indexes'} E Extra items in the left set: E 'sqlite_stat4' E Full diff: E - {'two_indexes', 'sqlite_stat1', 'one_index'} E + {'two_indexes', 'sqlite_stat1', 'sqlite_stat4', 'one_index'} E ? ++++++++++++++++ `` Apparentlysqlean.pyadds asqlite_stat4` table that the tests are not expecting.

Plus some errors that look like this: ``` def test_enable_wal(): runner = CliRunner() dbs = ["test.db", "test2.db"] with runner.isolated_filesystem(): for dbname in dbs: db = Database(dbname) db["t"].create({"pk": int}, pk="pk") assert db.journal_mode == "delete" result = runner.invoke(cli.cli, ["enable-wal"] + dbs)

      assert 0 == result.exit_code

E AssertionError: assert 0 == 1 E + where 1 = <Result OperationalError('cannot change into wal mode from within a transaction')>.exit_code Test summary: ============ 13 failed, 909 passed, 16 skipped, 2 errors in 19.29s ============= ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Use sqlean if available in environment 1773458985  

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