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/129#issuecomment-666752039 | https://api.github.com/repos/simonw/sqlite-utils/issues/129 | 666752039 | MDEyOklzc3VlQ29tbWVudDY2Njc1MjAzOQ== | 9599 | 2020-07-30T22:40:55Z | 2020-07-30T22:40:55Z | OWNER | This should be a separate command from `insert-files`. SQLite Archives should use a table with this schema: ```sql CREATE TABLE sqlar( name TEXT PRIMARY KEY, -- name of the file mode INT, -- access permissions mtime INT, -- last modification time sz INT, -- original file size data BLOB -- compressed content ); ``` `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. So if I write this command it should be this instead: sqlite-utils sqlar files.db file.txt file2.txt But at that point, why bother? Users can use `sqlite3 files.db -Ac *.txt` instead. So I'm not going to bother implementing this. | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
668308777 | |
https://github.com/simonw/sqlite-utils/issues/129#issuecomment-666046819 | https://api.github.com/repos/simonw/sqlite-utils/issues/129 | 666046819 | MDEyOklzc3VlQ29tbWVudDY2NjA0NjgxOQ== | 9599 | 2020-07-30T02:28:34Z | 2020-07-30T02:28:34Z | OWNER | This code looks useful as inspiration: https://github.com/j4mie/sqlsite/blob/f2dadb8db5ed7880f8872b6591d8cb1487f777ea/sqlsite/sqlar.py | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
668308777 |