issue_comments: 586443837
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/datasette/issues/673#issuecomment-586443837 | https://api.github.com/repos/simonw/datasette/issues/673 | 586443837 | MDEyOklzc3VlQ29tbWVudDU4NjQ0MzgzNw== | 9599 | 2020-02-14T19:40:42Z | 2020-02-14T19:41:56Z | OWNER | Here's how to test if the `rtree` virtual table is supported: ``` >>> import sqlite3 >>> c = sqlite3.connect(":memory:") >>> c.execute("create virtual table blah using rtree (a, b, c)") <sqlite3.Cursor object at 0x107bc4180> >>> c.execute("create virtual table blah2 using rtree2 (a, b, c)") Traceback (most recent call last): File "<stdin>", line 1, in <module> sqlite3.OperationalError: table blah already exists ``` Also: ``` >>> c.execute('''CREATE VIRTUAL TABLE SpatialIndex USING VirtualSpatialIndex()''') Traceback (most recent call last): File "<stdin>", line 1, in <module> sqlite3.OperationalError: no such module: VirtualSpatialIndex >>> c.enable_load_extension( ... True) >>> >>> c.load_extension("/usr/local/lib/mod_spatialite.dylib") >>> c.execute('''CREATE VIRTUAL TABLE SpatialIndex USING VirtualSpatialIndex()''') <sqlite3.Cursor object at 0x107bc4c70> ``` | {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} | 565518772 |