Skip to content

Loading Sqlite Extensions #271

@creichert

Description

@creichert

Is there any method for loading sqlite extensions in persistent? I am attempting to use spatialite. I can load it in the sqlite shell with the following commands.

sqlite> SELECT load_extension('libspatialite');
sqlite> SELECT HEX(GeomFromText('POINT(10 20)'));
00010000000000000000000024400000000000003440000000000000244000000000000034407C0100000000000000000024400000000000003440FE

or

sqlite> .load 'libspatialite'

This is definitely something I would be interested in looking into if there isn't enough existing support.

My ultimate goal is to be able to work with geospatial data in spatialite and/or PostGIS. I did see one mention of this here: https://groups.google.com/forum/#!searchin/yesodweb/GIS$20geospatial/yesodweb/NQlEbtCfNio/XmcEMBME40cJ

Once I can get the extension to load, I am planning to see how far I can get with rawSql wrappers first (as Greg mentioned). Any tips would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions