home / github / issue_comments

Menu
  • GraphQL API

issue_comments: 646242172

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/842#issuecomment-646242172 https://api.github.com/repos/simonw/datasette/issues/842 646242172 MDEyOklzc3VlQ29tbWVudDY0NjI0MjE3Mg== 9599 2020-06-18T18:46:06Z 2020-06-18T18:53:31Z OWNER Yes that can work - and using `__missing__` (new in Python 3) is nicer because then the regular dictionary gets checked first: ```python import sqlite3 conn = sqlite3.connect(":memory:") class Magic(dict): def __missing__(self, key): return key.upper() conn.execute("select :name", Magic()).fetchall() ``` Outputs: ``` [('NAME',)] ``` {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} 638212085  
Powered by Datasette · Queries took 0.871ms