home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1055854884

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/sqlite-utils/issues/343#issuecomment-1055854884 https://api.github.com/repos/simonw/sqlite-utils/issues/343 1055854884 IC_kwDOCGYnMM4-7xEk 9599 2022-03-01T21:03:45Z 2022-03-01T21:03:45Z OWNER

Just found myself needing this capability myself!

Relevant code:

https://github.com/simonw/sqlite-utils/blob/8f386a0d300d1b1c76132bb75972b755049fb742/sqlite_utils/db.py#L2297-L2307

https://github.com/simonw/sqlite-utils/blob/8f386a0d300d1b1c76132bb75972b755049fb742/sqlite_utils/db.py#L2996-L3001

So various functions could grow a hash_id_columns=("title", "date") argument which causes just those columns to be included in the hash.

Bonus: if you use hash_id_columns=... without setting hash_id="id" it could assume that you want the column to be called id.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
1063388037  
Powered by Datasette · Queries took 0.75ms · About: github-to-sqlite