{"html_url": "https://github.com/dogsheep/dogsheep-photos/issues/23#issuecomment-631120771", "issue_url": "https://api.github.com/repos/dogsheep/dogsheep-photos/issues/23", "id": 631120771, "node_id": "MDEyOklzc3VlQ29tbWVudDYzMTEyMDc3MQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-19T22:32:48Z", "updated_at": "2020-05-19T22:32:48Z", "author_association": "MEMBER", "body": "Documentation: https://github.com/dogsheep/photos-to-sqlite/blob/e2fab012551eed05278040b5d57e7373a1b9a0bf/README.md#creating-a-subset-database", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 621280529, "label": "create-subset command for creating a publishable subset of a photos database"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/113#issuecomment-631084748", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/113", "id": 631084748, "node_id": "MDEyOklzc3VlQ29tbWVudDYzMTA4NDc0OA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-05-19T21:11:22Z", "updated_at": "2020-05-19T21:11:22Z", "author_association": "OWNER", "body": "Here's how `twitter-to-sqlite` does it: https://github.com/dogsheep/twitter-to-sqlite/blob/6be0ffcee24504fa2964b0e526842b8cfce7567b/twitter_to_sqlite/utils.py#L506-L511\r\n\r\n```python\r\n attach_sql = \"\"\"\r\n ATTACH DATABASE '{}' AS [{}];\r\n \"\"\".format(\r\n str(pathlib.Path(filepath).resolve()), alias\r\n )\r\n db.conn.execute(attach_sql)\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 621286870, "label": "Syntactic sugar for ATTACH DATABASE"}, "performed_via_github_app": null}