issue_comments: 508872137
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/541#issuecomment-508872137 | https://api.github.com/repos/simonw/datasette/issues/541 | 508872137 | MDEyOklzc3VlQ29tbWVudDUwODg3MjEzNw== | 9599 | 2019-07-05T22:16:57Z | 2019-07-05T22:16:57Z | OWNER | It should allow for awaitables too, to allow for execution of SQL. For example: ```python @hookimpl def extra_template_vars(datasette): async def inner(): first_db = list(datasette.databases.keys())[0] return { "sqlite_version": ( await datasette.execute(first_db, "select sqlite_version()") ).rows[0][0] } return inner ``` | {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} | 464779810 |