{"html_url": "https://github.com/simonw/sqlite-utils/issues/124#issuecomment-664105302", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/124", "id": 664105302, "node_id": "MDEyOklzc3VlQ29tbWVudDY2NDEwNTMwMg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-27T03:54:24Z", "updated_at": "2020-07-30T22:57:51Z", "author_association": "OWNER", "body": "Documentation: https://github.com/simonw/sqlite-utils/commit/814d4a7f90991be865d38aac45ff12e36df1c67d?short_path=7240b7c#diff-7240b7c71b1a8194da0c001c64fc8d40\r\n\r\n> You can pass named parameters to the query using -p:\r\n>\r\n> $ sqlite-utils query dogs.db \"select :num * :num2\" -p num 5 -p num2 6\r\n> [{\":num * :num2\": 30}]\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 665802405, "label": "sqlite-utils query should support named parameters"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/909#issuecomment-666010395", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/909", "id": 666010395, "node_id": "MDEyOklzc3VlQ29tbWVudDY2NjAxMDM5NQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-30T00:56:17Z", "updated_at": "2020-07-30T00:56:17Z", "author_association": "OWNER", "body": "```\r\n$ curl -I https://latest.datasette.io/fixtures.db\r\nHTTP/1.1 200 OK\r\ncontent-disposition: attachment; filename=\"fixtures.db\"\r\ncontent-type: application/octet-stream\r\nDate: Thu, 30 Jul 2020 00:56:05 GMT\r\nServer: Google Frontend\r\nTransfer-Encoding: chunked\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 667467128, "label": "AsgiFileDownload: filename not correctly passed"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/129#issuecomment-666046819", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/129", "id": 666046819, "node_id": "MDEyOklzc3VlQ29tbWVudDY2NjA0NjgxOQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-30T02:28:34Z", "updated_at": "2020-07-30T02:28:34Z", "author_association": "OWNER", "body": "This code looks useful as inspiration: https://github.com/j4mie/sqlsite/blob/f2dadb8db5ed7880f8872b6591d8cb1487f777ea/sqlsite/sqlar.py", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 668308777, "label": "\"insert-files --sqlar\" for creating SQLite archives"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/127#issuecomment-666047928", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/127", "id": 666047928, "node_id": "MDEyOklzc3VlQ29tbWVudDY2NjA0NzkyOA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-30T02:31:05Z", "updated_at": "2020-07-30T02:31:05Z", "author_association": "OWNER", "body": "Maybe could do this using an improved version of this lambda? Could teach it to look for `-` and read from `sys.stdin` if it sees it.\r\n\r\nhttps://github.com/simonw/sqlite-utils/blob/710454d72aed5094573e642344fd075a0ef5372c/sqlite_utils/cli.py#L839", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 666040390, "label": "Ability to insert files piped to insert-files stdin"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/127#issuecomment-666063689", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/127", "id": 666063689, "node_id": "MDEyOklzc3VlQ29tbWVudDY2NjA2MzY4OQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-30T03:08:51Z", "updated_at": "2020-07-30T03:08:51Z", "author_association": "OWNER", "body": "Documentation at the bottom of this section: https://github.com/simonw/sqlite-utils/blob/8fe1e6d1be021aeeb8f08b0f77f03b75a83b6f75/docs/cli.rst#inserting-binary-data-from-files", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 666040390, "label": "Ability to insert files piped to insert-files stdin"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/sqlite-utils/issues/129#issuecomment-666752039", "issue_url": "https://api.github.com/repos/simonw/sqlite-utils/issues/129", "id": 666752039, "node_id": "MDEyOklzc3VlQ29tbWVudDY2Njc1MjAzOQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-07-30T22:40:55Z", "updated_at": "2020-07-30T22:40:55Z", "author_association": "OWNER", "body": "This should be a separate command from `insert-files`. SQLite Archives should use a table with this schema:\r\n```sql\r\nCREATE TABLE sqlar(\r\n name TEXT PRIMARY KEY, -- name of the file\r\n mode INT, -- access permissions\r\n mtime INT, -- last modification time\r\n sz INT, -- original file size\r\n data BLOB -- compressed content\r\n);\r\n```\r\n`insert-files` currently treats the table name as a required argument - but it's not necessary for this table. Also there shouldn't be any support for the `--column` option.\r\n\r\nSo if I write this command it should be this instead:\r\n\r\n sqlite-utils sqlar files.db file.txt file2.txt\r\n\r\nBut at that point, why bother? Users can use `sqlite3 files.db -Ac *.txt` instead.\r\n\r\nSo I'm not going to bother implementing this.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 668308777, "label": "\"insert-files --sqlar\" for creating SQLite archives"}, "performed_via_github_app": null}