home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1504295345

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/datasette/issues/2058#issuecomment-1504295345 https://api.github.com/repos/simonw/datasette/issues/2058 1504295345 IC_kwDOBm6k_c5Zqbmx 9599 2023-04-12T00:01:42Z 2023-04-12T00:02:26Z OWNER

Here's the relevant code:

https://github.com/simonw/datasette/blob/5890a20c374fb0812d88c9b0ef26a838bfa06c76/datasette/app.py#L421-L437

This function is called on almost every request (everything that subclasses BaseView at least - need to remember that for the refactor in #2053 etc).

https://github.com/simonw/datasette/blob/5890a20c374fb0812d88c9b0ef26a838bfa06c76/datasette/views/base.py#L101-L103

It uses PRAGMA schema_version as a cheap way to determine if the schema has changed, in which case it needs to refresh the internal schema tables.

This was already the cause of a subtle bug here: - #1231

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