home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

10 rows where author_association = "OWNER" and "updated_at" is on date 2021-08-02 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

issue 7

  • `table.convert(..., where=)` and `sqlite-utils convert ... --where=` 3
  • Configure sphinx.ext.extlinks for issues 2
  • Configure sphinx.ext.extlinks for issues 1
  • "sqlite-utils convert" command to replace the separate "sqlite-transform" tool 1
  • Read lines with JSON object 1
  • Returning underlying cause for User Defined Functions 1
  • Python: need a way to execute a count with an extra where clause 1

user 1

  • simonw 10

author_association 1

  • OWNER · 10 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
891380382 https://github.com/simonw/sqlite-utils/issues/251#issuecomment-891380382 https://api.github.com/repos/simonw/sqlite-utils/issues/251 IC_kwDOCGYnMM41IWKe simonw 9599 2021-08-02T22:39:46Z 2021-08-02T22:39:46Z OWNER

Documentation: https://sqlite-utils.datasette.io/en/stable/cli.html#converting-data-in-columns

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
"sqlite-utils convert" command to replace the separate "sqlite-transform" tool 841377702  
891359751 https://github.com/simonw/sqlite-utils/issues/298#issuecomment-891359751 https://api.github.com/repos/simonw/sqlite-utils/issues/298 IC_kwDOCGYnMM41IRIH simonw 9599 2021-08-02T21:55:16Z 2021-08-02T21:55:16Z OWNER

This is a feature already! You can do this:

sqlite-utils insert nl-demo.db mytable data.ndjson --nl

See https://sqlite-utils.datasette.io/en/stable/cli.html#inserting-newline-delimited-json

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Read lines with JSON object 951581763  
891356906 https://github.com/simonw/sqlite-utils/issues/300#issuecomment-891356906 https://api.github.com/repos/simonw/sqlite-utils/issues/300 IC_kwDOCGYnMM41IQbq simonw 9599 2021-08-02T21:49:10Z 2021-08-02T21:49:10Z OWNER

I'm nervous to set this by default in the Python library because it's a global setting, so I can't isolate it to just code that is being called by a sqlite_utils method.

The new sqlite-utils convert command from #251 DOES turn it on - I think having it on by default for a CLI tool that uses user-defined functions makes sense: https://github.com/simonw/sqlite-utils/blob/e83aef951bd3e8c179511faddb607239a5fa8682/sqlite_utils/cli.py#L2006

I like the suggestion to include this in the documentation. I'll do that!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Returning underlying cause for User Defined Functions  956832836  
891352587 https://github.com/simonw/sqlite-utils/issues/306#issuecomment-891352587 https://api.github.com/repos/simonw/sqlite-utils/issues/306 IC_kwDOCGYnMM41IPYL simonw 9599 2021-08-02T21:39:34Z 2021-08-02T21:39:34Z OWNER

This older TIL would have saved me some time! https://til.simonwillison.net/sphinx/sphinx-ext-extlinks

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Configure sphinx.ext.extlinks for issues 958516743  
891352132 https://github.com/simonw/datasette/issues/1227#issuecomment-891352132 https://api.github.com/repos/simonw/datasette/issues/1227 IC_kwDOBm6k_c41IPRE simonw 9599 2021-08-02T21:38:39Z 2021-08-02T21:38:39Z OWNER

Relevant TIL: https://til.simonwillison.net/vscode/vs-code-regular-expressions

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Configure sphinx.ext.extlinks for issues 810394616  
891352073 https://github.com/simonw/sqlite-utils/issues/306#issuecomment-891352073 https://api.github.com/repos/simonw/sqlite-utils/issues/306 IC_kwDOCGYnMM41IPQJ simonw 9599 2021-08-02T21:38:32Z 2021-08-02T21:38:32Z OWNER

TIL about this: https://til.simonwillison.net/vscode/vs-code-regular-expressions

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Configure sphinx.ext.extlinks for issues 958516743  
891257730 https://github.com/simonw/sqlite-utils/issues/304#issuecomment-891257730 https://api.github.com/repos/simonw/sqlite-utils/issues/304 IC_kwDOCGYnMM41H4OC simonw 9599 2021-08-02T19:00:00Z 2021-08-02T19:00:00Z OWNER

Documented here:

  • https://sqlite-utils.datasette.io/en/latest/python-api.html#converting-data-in-columns
  • https://sqlite-utils.datasette.io/en/latest/cli.html#converting-data-in-columns
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
`table.convert(..., where=)` and `sqlite-utils convert ... --where=` 957731178  
890713185 https://github.com/simonw/sqlite-utils/issues/305#issuecomment-890713185 https://api.github.com/repos/simonw/sqlite-utils/issues/305 IC_kwDOCGYnMM41FzRh simonw 9599 2021-08-02T04:53:53Z 2021-08-02T04:53:53Z OWNER

I'm going to rename .execute_count() to .count_where() - but I'll keep .execute_count() in the codebase since it's a documented API at https://sqlite-utils.datasette.io/en/3.13/python-api.html#count and I don't want to do a major version bump.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Python: need a way to execute a count with an extra where clause 957741820  
890711924 https://github.com/simonw/sqlite-utils/issues/304#issuecomment-890711924 https://api.github.com/repos/simonw/sqlite-utils/issues/304 IC_kwDOCGYnMM41Fy90 simonw 9599 2021-08-02T04:50:13Z 2021-08-02T04:50:13Z OWNER

For the Python function, the args will be where=None, where_args=None.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
`table.convert(..., where=)` and `sqlite-utils convert ... --where=` 957731178  
890704624 https://github.com/simonw/sqlite-utils/issues/304#issuecomment-890704624 https://api.github.com/repos/simonw/sqlite-utils/issues/304 IC_kwDOCGYnMM41FxLw simonw 9599 2021-08-02T04:28:42Z 2021-08-02T04:28:42Z OWNER

For the command-line version this can duplicate the --param option to allow named parameters in the where clause: https://github.com/simonw/sqlite-utils/blob/c7e8d72be9fe8fe0811f685a18eebc637662d41b/sqlite_utils/cli.py#L1096-L1102

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
`table.convert(..., where=)` and `sqlite-utils convert ... --where=` 957731178  

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 1308.306ms · About: github-to-sqlite