This package provides SpatiaLite, a spatial extension to SQLite, compiled with Cpp.js for seamless integration in JavaScript, WebAssembly and React Native environments. By using Cpp.js, this package enables high-performance spatial database operations bot
npm install @cpp.js/package-spatialite-ios-multithread``sh`
npm install @cpp.js/package-spatialite
To enable the library, modify the cppjs.config.js file as shown below.
`diff
+import spatialite from '@cpp.js/package-spatialite/cppjs.config.js';
export default {
dependencies: [
+ spatialite
]
paths: {
config: import.meta.url,
}
};
`
diff
+#include std::string Native::sample() {
+ return std::string(spatialite_version());
}
``Spatialite Homepage: https://www.gaia-gis.it/fossil/libspatialite/index