home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1379492499

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/1988#issuecomment-1379492499 https://api.github.com/repos/simonw/datasette/issues/1988 1379492499 IC_kwDOBm6k_c5SOWKT 9599 2023-01-11T21:15:01Z 2023-01-11T21:20:14Z OWNER

This is tricky. datasette-template-sql registers a custom sql() function, but @cldellow spotted a situation where this would interfere with an existing {{ sql }} variable in a template context!

https://github.com/simonw/datasette-template-sql/blob/70483fd94bb0349761830e37c9ab928e8966841a/datasette_template_sql/init.py

```python @hookimpl def extra_template_vars(datasette): async def execute_sql(sql, args=None, database=None): db = datasette.get_database(database) return (await db.execute(sql, args)).rows

return {"sql": execute_sql}

```

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