{"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} {"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}