github
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | issue | performed_via_github_app |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/simonw/sqlite-utils/issues/449#issuecomment-1172902594 | https://api.github.com/repos/simonw/sqlite-utils/issues/449 | 1172902594 | IC_kwDOCGYnMM5F6RLC | 9599 | 2022-07-02T13:55:51Z | 2022-07-02T13:55:51Z | OWNER | I like the idea of this as a feature - design could look like this: db["my_table"].duplicate("new_table") Then for the CLI tool: sqlite-utils duplicate data.db my_table new_table Additional features that might be useful: - Duplicate across connection aliases - so you can copy a table to another database using the `duplicate` method or command - 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 | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1279863844 | |
https://github.com/simonw/sqlite-utils/issues/427#issuecomment-1172903355 | https://api.github.com/repos/simonw/sqlite-utils/issues/427 | 1172903355 | IC_kwDOCGYnMM5F6RW7 | 9599 | 2022-07-02T13:59:30Z | 2022-07-02T13:59:30Z | OWNER | This should work to avoid that: sqlite-utils convert \ ${dbfile} details dob \ 'r.parsedate(value)' \ --where "dob != '*'" | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1212701569 | |
https://github.com/simonw/datasette/issues/1646#issuecomment-1172930092 | https://api.github.com/repos/simonw/datasette/issues/1646 | 1172930092 | IC_kwDOBm6k_c5F6X4s | 1473102 | 2022-07-02T17:12:18Z | 2022-07-02T17:12:18Z | NONE | I'm affected by this as well. Would be nice to be able to pass in an extension, eg `--extension=sqlite3`. | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1157182254 | |
https://github.com/simonw/datasette/issues/1646#issuecomment-1172970910 | https://api.github.com/repos/simonw/datasette/issues/1646 | 1172970910 | IC_kwDOBm6k_c5F6h2e | 9599 | 2022-07-02T22:13:13Z | 2022-07-02T22:17:16Z | OWNER | Adding `.sqlite3` to this feature makes sense to me. I don't think it's worth having a `--extensión` 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 Here: https://github.com/simonw/datasette-upload-dbs/blob/81510ef4f0004371a3adda18100936b430535cc1/datasette_upload_dbs/__init__.py#L41-L50 | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1157182254 |