{"html_url": "https://github.com/simonw/datasette/issues/971#issuecomment-696307922", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/971", "id": 696307922, "node_id": "MDEyOklzc3VlQ29tbWVudDY5NjMwNzkyMg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-09-21T18:59:52Z", "updated_at": "2020-09-21T19:00:02Z", "author_association": "OWNER", "body": "Given `dbstat` isn't as widely available as I thought I'm going to let people who want to use `dbstat` run their own `select * from dbstat` queries rather than bake support directly into Datasette.\r\n\r\nThe experience of exploring `dbstat` will improve if I land support for running facets against arbitrary custom SQL queries, which is half-done in that facets now execute against wrapped subqueries as-of ea66c45df96479ef66a89caa71fff1a97a862646\r\n\r\nhttps://github.com/simonw/datasette/blob/ea66c45df96479ef66a89caa71fff1a97a862646/datasette/facets.py#L192-L200", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 705827457, "label": "Support the dbstat table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/971#issuecomment-696304108", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/971", "id": 696304108, "node_id": "MDEyOklzc3VlQ29tbWVudDY5NjMwNDEwOA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-09-21T18:52:50Z", "updated_at": "2020-09-21T18:52:50Z", "author_association": "OWNER", "body": "Looks like the `pysqlite3-binary` package doesn't support `dbstat` either.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 705827457, "label": "Support the dbstat table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/971#issuecomment-696302868", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/971", "id": 696302868, "node_id": "MDEyOklzc3VlQ29tbWVudDY5NjMwMjg2OA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-09-21T18:50:40Z", "updated_at": "2020-09-21T18:50:40Z", "author_association": "OWNER", "body": "Easiest way to get this may be to run `create view dbstat_view as select * from dbstat` on databases that support it.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 705827457, "label": "Support the dbstat table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/971#issuecomment-696302020", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/971", "id": 696302020, "node_id": "MDEyOklzc3VlQ29tbWVudDY5NjMwMjAyMA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-09-21T18:49:09Z", "updated_at": "2020-09-21T18:49:09Z", "author_association": "OWNER", "body": "... made harder to work on because I apparently don't have the `DBSTAT_VTAB` module on macOS.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 705827457, "label": "Support the dbstat table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/971#issuecomment-696298614", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/971", "id": 696298614, "node_id": "MDEyOklzc3VlQ29tbWVudDY5NjI5ODYxNA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-09-21T18:43:07Z", "updated_at": "2020-09-21T18:43:07Z", "author_association": "OWNER", "body": "Or, do this:\r\n```sql\r\nSELECT 1 FROM dbstat limit 1;\r\n```\r\nAnd see if it returns a \"table does not exist\" error.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 705827457, "label": "Support the dbstat table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/971#issuecomment-696297930", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/971", "id": 696297930, "node_id": "MDEyOklzc3VlQ29tbWVudDY5NjI5NzkzMA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-09-21T18:41:47Z", "updated_at": "2020-09-21T18:41:47Z", "author_association": "OWNER", "body": "https://www.sqlite.org/dbstat.html\r\n> The DBSTAT virtual table is an eponymous virtual table, meaning that is not necessary to run CREATE VIRTUAL TABLE to create an instance of the dbstat virtual table before using it.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 705827457, "label": "Support the dbstat table"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/971#issuecomment-696297601", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/971", "id": 696297601, "node_id": "MDEyOklzc3VlQ29tbWVudDY5NjI5NzYwMQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-09-21T18:41:07Z", "updated_at": "2020-09-21T18:41:07Z", "author_association": "OWNER", "body": "How to detect it? Looks like it's visible in SQLite compile time options: https://latest.datasette.io/-/versions\r\n\r\n```\r\n \"compile_options\": [\r\n \"COMPILER=gcc-8.3.0\",\r\n \"ENABLE_COLUMN_METADATA\",\r\n \"ENABLE_DBSTAT_VTAB\",\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 705827457, "label": "Support the dbstat table"}, "performed_via_github_app": null}