问题标签 [jsqlite]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - How do I use a prepared statement in Spatialite Android?
I'm looking at the tutorial for Spatialite-Android, and I'm noticing the following code samples:
In particular, I noticed that poor practice is done of simply stringing together a SQL query, instead of a more proper method, such as is used by the Android SQLite library. Is there a way that I can make Spatialite use true prepared statements?
Just to be clear, I'm looking for something like this, using the standard SQLite database in Android:
android - VACUUM 导致“无法打开数据库文件”
当我尝试将新文件添加到我的数据库时,我在 Spatialite 中收到以下错误。
此代码在与 UI 线程不同的线程中运行,并执行以下代码,第 153 行标记自 GeoDataHelper.addDb。
打开数据库的代码包括:
我不明白前两个调用如何有效,但 VACUUM 不是。有任何想法吗?
android - 检查 SpatiaLite 数据库是否打开 - android
我正在尝试检查我的 jsqlite 数据库是否打开。不幸的是,这种数据库没有 isOpen() 函数,我找不到任何类似的方法来检查数据库是否打开。有没有人遇到过这个问题?我在文档中找不到任何参考。
android - 无法将 spatialite android 添加到我的项目中
我的要求是使用spatialite Android来查询空间数据和坐标变换。我已尝试使用有关空间文档的指南,但不清楚将哪个文件放在哪里。据我了解,.so
文件需要在libs
文件夹下,其他项目应添加为模块。我已将.so
文件放在 libs 文件夹下,并尝试将源添加为模块,但Next按钮Finsish被禁用。
我正在从这里下载文件.so
并从这里获取源代码。在这里的文档中,他们声称如果我们下载这个项目它会开箱即用,但事实并非如此。它显示错误,我什至无法运行该项目。
我还尝试从 mvn 存储库添加 android-spatialite
和 geopaparazzi(试试这个,因为我认为 android-spatialite 是其中的一部分)
但我仍然无法执行文档中提到的任何选项。我的项目找不到jsqlite.Database
请让我知道我必须做什么才能使空间查询正常工作。任何努力都会得到回报。
问候 Inzimam Tariq