home / github / issue_comments

Menu
  • GraphQL API

issue_comments: 1078315922

This data as json

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/420#issuecomment-1078315922 https://api.github.com/repos/simonw/sqlite-utils/issues/420 1078315922 IC_kwDOCGYnMM5ARcuS 9599 2022-03-24T21:09:27Z 2022-03-24T21:09:27Z OWNER Yeah, this is WAY harder than it should be. There's a clumsy workaround you could use which looks something like this: create a file `my_enchant.py` containing: ```python import enchant d = enchant.Dict("en_US") def check(word): return d.check(word) ``` Then run `sqlite-utils` like this: ``` PYTHONPATH=. cat items.json | jq '.data' | sqlite-utils insert listings.db listings - --convert 'my_enchant.check(value)' --import my_enchant ``` Except I tried that and it doesn't work! I don't know the right pattern for getting `--import` to work with modules in the same directory. So yeah, this is definitely a big feature gap. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} 1178546862  
Powered by Datasette · Queries took 0.793ms