-
-
Notifications
You must be signed in to change notification settings - Fork 653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerfile should build more recent SQLite with FTS5 and spatialite support #46
Comments
Spatial extensions would be really useful too. https://www.gaia-gis.it/spatialite-2.1/SpatiaLite-manual.html |
http://charlesleifer.com/blog/going-fast-with-sqlite-and-python/ is useful here too. |
Also requested on Twitter: https://twitter.com/DenubisX/status/930322813864439808 |
@simonw On the spatialite support, here is some info to make it work and a screenshot: I used the following Dockerfile:
and added this to
|
That's fantastic! Thank you very much for that. Do you know if it's possible to view the Dockerfile used by https://hub.docker.com/r/prolocutor/python3-sqlite-ext/ ? |
Found a relevant Dockerfile on Reddit: https://www.reddit.com/r/Python/comments/5unkb3/install_sqlite3_on_python_3/ddzdz2b/ |
Maybe part of the solution here is to add a |
OK, |
The fact that |
The JSON extension would be very worthwhile too: https://www.sqlite.org/json1.html |
I'll try to find alternatives to the Dockerfile option - I also think we should not use that old one without sources or license. |
We now have a Dockerfile that compiles spatialite! 6c6b63d |
OK, I can confirm that the version in the new docker container supports FTS5, JSON and spatialite! Notes on how I built the container and tested the spatialite extension are here: #112 (comment) To confirm that JSON and FTS5 are working, I ran the following:
If I do the same thing in python3 on my OS X laptop directly, I get this:
|
The SQLite bundled with Python 3 doesn't support the FTS5 search extension. It would be nice if the SQLite built by our Dockerfile could support as many modern SQLite features as possible.
https://web.archive.org/web/20170212034155/http://charlesleifer.com/blog/using-the-sqlite-json1-and-fts5-extensions-with-python/ has instructions on building a more recent SQLite and the pysqlite package. Our Dockerfile could carry out an updated version of this process.
The text was updated successfully, but these errors were encountered: