{"html_url": "https://github.com/simonw/datasette/issues/1613#issuecomment-1021860694", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1613", "id": 1021860694, "node_id": "IC_kwDOBm6k_c486FtW", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T04:57:53Z", "updated_at": "2022-01-26T04:57:53Z", "author_association": "OWNER", "body": "The existing flow where you can apply filters to a table and then click \"View and edit SQL\" to see the query is a good starting point.\r\n\r\nGroup by queries are both crucially important and difficult to assemble for beginners. Providing a way to see the query that was used by a facet (since facets are really just group-by-counts) would be very useful, which could come out of this:\r\n\r\n- #1080", "reactions": "{\"total_count\": 1, \"+1\": 1, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114628238, "label": "Improvements to help make Datasette a better tool for learning SQL"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1613#issuecomment-1022254258", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1613", "id": 1022254258, "node_id": "IC_kwDOBm6k_c487lyy", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T14:33:46Z", "updated_at": "2022-01-26T14:37:31Z", "author_association": "OWNER", "body": "Tool for setting up foreign key relationships. It could even verify the relationship before you apply it - checking that every value in the column does indeed correspond to a value in the other table.\r\n\r\nCould also detect and suggest possible ones.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114628238, "label": "Improvements to help make Datasette a better tool for learning SQL"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1613#issuecomment-1022255862", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1613", "id": 1022255862, "node_id": "IC_kwDOBm6k_c487mL2", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T14:35:31Z", "updated_at": "2022-01-26T14:37:44Z", "author_association": "OWNER", "body": "Joins are really hard. A mechanism for constructing them in the table view would help a lot:\r\n- https://github.com/simonw/datasette/issues/613", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114628238, "label": "Improvements to help make Datasette a better tool for learning SQL"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1613#issuecomment-1022257496", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1613", "id": 1022257496, "node_id": "IC_kwDOBm6k_c487mlY", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T14:37:14Z", "updated_at": "2022-01-26T14:37:14Z", "author_association": "OWNER", "body": "Better contextual help on the SQL editor - like in Django SQL Dashboard which shows all available tables and columns.\r\n\r\nFancy inline autocomplete would be great too, but that's pretty hard for SQL based on past research.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114628238, "label": "Improvements to help make Datasette a better tool for learning SQL"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1613#issuecomment-1022381732", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1613", "id": 1022381732, "node_id": "IC_kwDOBm6k_c488E6k", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T16:41:45Z", "updated_at": "2022-01-26T16:41:45Z", "author_association": "OWNER", "body": "A better interface for modifying the columns used in the SELECT clause would be useful too.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114628238, "label": "Improvements to help make Datasette a better tool for learning SQL"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/387#issuecomment-1021773056", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/387", "id": 1021773056, "node_id": "IC_kwDOCGYnMM485wUA", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T01:37:17Z", "updated_at": "2022-01-26T01:37:17Z", "author_association": "OWNER", "body": "https://sqlite-utils.datasette.io/en/latest/python-api.html#getting-started", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1111293050, "label": "Python library docs should start with a self contained example"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/388#issuecomment-1021784593", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/388", "id": 1021784593, "node_id": "IC_kwDOCGYnMM485zIR", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T01:56:48Z", "updated_at": "2022-01-26T01:56:48Z", "author_association": "OWNER", "body": "On https://readthedocs.org/dashboard/sqlite-utils/advanced/ I checked this box (previously unchecked):\r\n\r\n![CleanShot 2022-01-25 at 17 56 22@2x](https://user-images.githubusercontent.com/9599/151090718-72e553a6-826a-43b6-98bd-f70b0cba8784.png)\r\n\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114543475, "label": "Link to stable docs from older versions"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/388#issuecomment-1021785268", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/388", "id": 1021785268, "node_id": "IC_kwDOCGYnMM485zS0", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T01:58:19Z", "updated_at": "2022-01-26T01:58:19Z", "author_association": "OWNER", "body": "While I'm modifying that template I'm also going to add Plausible analytics:\r\n```html\r\n\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114543475, "label": "Link to stable docs from older versions"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/388#issuecomment-1021787822", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/388", "id": 1021787822, "node_id": "IC_kwDOCGYnMM485z6u", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T02:03:25Z", "updated_at": "2022-01-26T02:03:25Z", "author_association": "OWNER", "body": "https://sqlite-utils.datasette.io/en/latest/\r\n\r\n\"image\"\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114543475, "label": "Link to stable docs from older versions"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/388#issuecomment-1021788260", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/388", "id": 1021788260, "node_id": "IC_kwDOCGYnMM4850Bk", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T02:04:17Z", "updated_at": "2022-01-26T02:04:17Z", "author_association": "OWNER", "body": "https://sqlite-utils.datasette.io/en/3.20/ now also shows the version warning banner.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114543475, "label": "Link to stable docs from older versions"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/389#issuecomment-1021789016", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/389", "id": 1021789016, "node_id": "IC_kwDOCGYnMM4850NY", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T02:05:41Z", "updated_at": "2022-01-26T02:05:41Z", "author_association": "OWNER", "body": "Oops, wrong domain in that - https://plausible.io/sqlite-utils.datasette.io is not yet showing data.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114544727, "label": "Plausible analytics for documentation"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/389#issuecomment-1021790136", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/389", "id": 1021790136, "node_id": "IC_kwDOCGYnMM4850e4", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T02:07:41Z", "updated_at": "2022-01-26T02:07:41Z", "author_association": "OWNER", "body": "That fixed it.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114544727, "label": "Plausible analytics for documentation"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/390#issuecomment-1021825322", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/390", "id": 1021825322, "node_id": "IC_kwDOCGYnMM4859Eq", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T03:20:12Z", "updated_at": "2022-01-26T03:20:25Z", "author_association": "OWNER", "body": "```\r\n% sqlite-utils upsert trees.db blah -\r\nUsage: sqlite-utils upsert [OPTIONS] PATH TABLE FILE\r\nTry 'sqlite-utils upsert -h' for help.\r\n\r\nError: Missing option '--pk'.\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114557284, "label": "`sqlite-utils upsert` should require `--pk` more elegantly"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/391#issuecomment-1021876055", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/391", "id": 1021876055, "node_id": "IC_kwDOCGYnMM486JdX", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T05:15:58Z", "updated_at": "2022-01-26T05:15:58Z", "author_association": "OWNER", "body": "Could add support for `--batch-size` as seen in `insert`/`upsert` too - causing it to break the list up into batches and commit for each one.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114638930, "label": "`sqlite-utils bulk` progress bar"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/391#issuecomment-1021876463", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/391", "id": 1021876463, "node_id": "IC_kwDOCGYnMM486Jjv", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T05:16:51Z", "updated_at": "2022-01-26T05:16:51Z", "author_association": "OWNER", "body": "Actually adding a progress bar may not make sense here: it's designed to work with streaming input from stdin, in which case it's impossible for it to know the overall number of rows to be processed.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114638930, "label": "`sqlite-utils bulk` progress bar"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/392#issuecomment-1021876914", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/392", "id": 1021876914, "node_id": "IC_kwDOCGYnMM486Jqy", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T05:17:49Z", "updated_at": "2022-01-26T05:17:49Z", "author_association": "OWNER", "body": "Relevant code: https://github.com/simonw/sqlite-utils/blob/a9fca7efa4184fbb2a65ca1275c326950ed9d3c1/sqlite_utils/cli.py#L1014-L1018", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114640101, "label": "`sqlite-utils bulk --batch-size` option"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/392#issuecomment-1021877058", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/392", "id": 1021877058, "node_id": "IC_kwDOCGYnMM486JtC", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T05:18:12Z", "updated_at": "2022-01-26T05:18:18Z", "author_association": "OWNER", "body": "Help for `insert` says:\r\n```\r\n --batch-size INTEGER Commit every X records\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114640101, "label": "`sqlite-utils bulk --batch-size` option"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/392#issuecomment-1021877769", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/392", "id": 1021877769, "node_id": "IC_kwDOCGYnMM486J4J", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T05:19:48Z", "updated_at": "2022-01-26T05:19:48Z", "author_association": "OWNER", "body": "Can use this utility function: https://github.com/simonw/sqlite-utils/blob/a9fca7efa4184fbb2a65ca1275c326950ed9d3c1/sqlite_utils/utils.py#L322-L325", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114640101, "label": "`sqlite-utils bulk --batch-size` option"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/392#issuecomment-1022466476", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/392", "id": 1022466476, "node_id": "IC_kwDOCGYnMM488Zms", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T18:17:43Z", "updated_at": "2022-01-26T18:17:43Z", "author_association": "OWNER", "body": "Manually tested it like this:\r\n```\r\n# Create database with an empty \"lines\" table\r\nsqlite-utils create-table bulk-test.db lines line text\r\n# Stream records every 0.5s, commit every 5 records\r\nstream-delay docs/python-api.rst -d 500 | \\\r\n sqlite-utils bulk bulk-test.db 'insert into lines (line) values (:line)' - \\\r\n --lines --batch-size 5\r\n```\r\nRunning `datasette bulk-test.db` showed that records would show up about every 2.5s five at a time.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1114640101, "label": "`sqlite-utils bulk --batch-size` option"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/48#issuecomment-1021790707", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/48", "id": 1021790707, "node_id": "IC_kwDOCGYnMM4850nz", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-01-26T02:08:39Z", "updated_at": "2022-01-26T02:08:39Z", "author_association": "OWNER", "body": "This is a dupe of #308.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 471818939, "label": "Jupyter notebook demo of the library, launchable on Binder"}, "performed_via_github_app": null}