{"html_url": "https://github.com/simonw/sqlite-utils/issues/449#issuecomment-1172902594", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/449", "id": 1172902594, "node_id": "IC_kwDOCGYnMM5F6RLC", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-07-02T13:55:51Z", "updated_at": "2022-07-02T13:55:51Z", "author_association": "OWNER", "body": "I like the idea of this as a feature - design could look like this:\r\n\r\n db[\"my_table\"].duplicate(\"new_table\")\r\n\r\nThen for the CLI tool:\r\n\r\n sqlite-utils duplicate data.db my_table new_table\r\n\r\nAdditional features that might be useful:\r\n\r\n- Duplicate across connection aliases - so you can copy a table to another database using the `duplicate` method or command\r\n- Ability to execute an arbitrary SQL query and save the results to a new table - basically a wrapper around `CREATE TABLE t AS SELECT ...`, again with alias support for copying to another database", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1279863844, "label": "Utilities for duplicating tables and creating a table with the results of a query"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/427#issuecomment-1172903355", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/427", "id": 1172903355, "node_id": "IC_kwDOCGYnMM5F6RW7", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-07-02T13:59:30Z", "updated_at": "2022-07-02T13:59:30Z", "author_association": "OWNER", "body": "This should work to avoid that:\r\n\r\n sqlite-utils convert \\\r\n ${dbfile} details dob \\\r\n 'r.parsedate(value)' \\\r\n --where \"dob != '*'\"", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1212701569, "label": "sqlite-utils convert date parsing recipe complains about trying to parse \"*\""}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1646#issuecomment-1172930092", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1646", "id": 1172930092, "node_id": "IC_kwDOBm6k_c5F6X4s", "user": {"value": 1473102, "label": "mustafa0x"}, "created_at": "2022-07-02T17:12:18Z", "updated_at": "2022-07-02T17:12:18Z", "author_association": "NONE", "body": "I'm affected by this as well. Would be nice to be able to pass in an extension, eg `--extension=sqlite3`.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1157182254, "label": "Configuration directory mode does not pick up other file extensions than .db"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1646#issuecomment-1172970910", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1646", "id": 1172970910, "node_id": "IC_kwDOBm6k_c5F6h2e", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-07-02T22:13:13Z", "updated_at": "2022-07-02T22:17:16Z", "author_association": "OWNER", "body": "Adding `.sqlite3` to this feature makes sense to me.\r\n\r\nI don't think it's worth having a `--extensi\u00f3n` option - it's possible right now to write a Datasette plugin that loads additional databases on startup, there's an example of how to do that in the source code for https://github.com/simonw/datasette-upload-dbs\r\n\r\nHere: https://github.com/simonw/datasette-upload-dbs/blob/81510ef4f0004371a3adda18100936b430535cc1/datasette_upload_dbs/__init__.py#L41-L50", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1157182254, "label": "Configuration directory mode does not pick up other file extensions than .db"}, "performed_via_github_app": null}