{"html_url": "https://github.com/simonw/sqlite-utils/issues/54#issuecomment-522236053", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/54", "id": 522236053, "node_id": "MDEyOklzc3VlQ29tbWVudDUyMjIzNjA1Mw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-08-17T13:22:26Z", "updated_at": "2019-08-17T13:22:26Z", "author_association": "OWNER", "body": "Good catch: `create_view()` is an earlier utility method from before I started adding methods like `db[\"table\"].rows` and `.rows_where()`.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 480961330, "label": "Ability to list views, and to access db[\"view_name\"].rows / rows_where / etc"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/569#issuecomment-522236218", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/569", "id": 522236218, "node_id": "MDEyOklzc3VlQ29tbWVudDUyMjIzNjIxOA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-08-17T13:24:50Z", "updated_at": "2019-08-17T13:24:50Z", "author_association": "OWNER", "body": "I think what I want it a mechanism where a thread can say \"give me a connection for database X\" and it either gets back connection to X instantly OR a new connection to X is created and returned OR it blocks (because a certain number of connections to that database exist already) until another thread returns their connection OR it times out and returns an error.\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 481885279, "label": "More advanced connection pooling"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/pull/55#issuecomment-522238063", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/55", "id": 522238063, "node_id": "MDEyOklzc3VlQ29tbWVudDUyMjIzODA2Mw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-08-17T13:42:40Z", "updated_at": "2019-08-17T13:42:40Z", "author_association": "OWNER", "body": "I still need to implement the part of this where certain actions against views (like updating/inserting) are not allowed.\r\n\r\nI think the better way to do that is to introduce a new class - `View` - rather than reusing the existing `Table` class - since there's a lot of stuff on Table (like primary key / foreign key introspection) which simply doesn't make sense for views.\r\n\r\nThis will get a bit more complicated - maybe I need both Table and View to extend a common subclass here?", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 481887482, "label": "Ability to introspect and run queries against views"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/569#issuecomment-522238222", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/569", "id": 522238222, "node_id": "MDEyOklzc3VlQ29tbWVudDUyMjIzODIyMg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2019-08-17T13:44:24Z", "updated_at": "2019-08-17T13:45:10Z", "author_association": "OWNER", "body": "Potential API design:\r\n```python\r\nwith pool.connection(\"fixtures\") as conn:\r\n conn.set_time_limit(1000)\r\n conn.allow_all()\r\n conn.execute(...)\r\n```\r\nWithin this block the current thread has exclusive action to the connection - which has essentially been \"checked out\" from the pool. When the block ends that connection is made available to be checked out by other threads.\r\n\r\nThis could accept multiple database names for the case where I want to join across databases:\r\n```python\r\nwith pool.connection(\"fixtures\", \"dogs\") as conn:\r\n conn.execute(...)\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 481885279, "label": "More advanced connection pooling"}, "performed_via_github_app": null}