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/282#issuecomment-864348954 | https://api.github.com/repos/simonw/sqlite-utils/issues/282 | 864348954 | MDEyOklzc3VlQ29tbWVudDg2NDM0ODk1NA== | 9599 | 2021-06-19T03:34:42Z | 2021-06-19T03:35:46Z | OWNER | I built some prototype code here for something which looks at every row in a CSV import and records the likely types: https://gist.github.com/simonw/465f9356f175d1cf86957947dff501d4 This could be used by the command-line tools to figure out what `table.transform(types=...)` method to use at the end. This is a different approach to the pure SQL version I tried building in https://github.com/simonw/sqlite-utils/issues/179 - I think this is a better approach though, it's less prone to weird idiosyncrasies of SQLite types, and it's also easy for us to add on to the existing CSV import code in a way that won't require scanning the data twice. | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
925305186 | |
https://github.com/simonw/sqlite-utils/issues/282#issuecomment-864349123 | https://api.github.com/repos/simonw/sqlite-utils/issues/282 | 864349123 | MDEyOklzc3VlQ29tbWVudDg2NDM0OTEyMw== | 9599 | 2021-06-19T03:36:54Z | 2021-06-19T03:36:54Z | OWNER | I may change the default for `sqlite-utils insert` to detect types if I release `sqlite-utils` 4.0, as a backwards-incompatible change. | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
925305186 | |
https://github.com/simonw/sqlite-utils/issues/282#issuecomment-864350407 | https://api.github.com/repos/simonw/sqlite-utils/issues/282 | 864350407 | MDEyOklzc3VlQ29tbWVudDg2NDM1MDQwNw== | 9599 | 2021-06-19T03:52:20Z | 2021-06-19T03:52:20Z | OWNER | I'll have an environment variable for `--detect-types` so users who really want that as the default option can turn it on. | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
925305186 | |
https://github.com/simonw/sqlite-utils/issues/282#issuecomment-864354627 | https://api.github.com/repos/simonw/sqlite-utils/issues/282 | 864354627 | MDEyOklzc3VlQ29tbWVudDg2NDM1NDYyNw== | 9599 | 2021-06-19T04:42:03Z | 2021-06-19T04:42:03Z | OWNER | Demo: curl -s 'https://api.github.com/users/simonw/repos?per_page=100' | \ sqlite-utils memory - 'select sum(size), sum(stargazers_count) from stdin limit 1' [{"sum(size)": 2042547, "sum(stargazers_count)": 6769}] | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
925305186 |