PhoneGap, SQLite and full-text search - sqlite

We are trying to scope out a project that has a relatively sophisticated search function. For instance it needs to search variations of words -- with "legal" and "legally" treated the same.
I believe the SQLite full-text extensions (FTS3, FTS4) will do everything we need, but I don't know if that's an option. Has anyone successfully used SQLite with FTS3 or FTS4 in a PhoneGap application?
If not, does anyone know of any robust alternatives that will work in PhoneGap?

The default sqlite build in iOS does not support FTS. You have compile your own version with support for FTS3/FTS4 and include it in your project. Then, in PhoneGap, use an SQLite plugin and you have a SQLite DB with FTS.

Related

SQLite support in Dart command-line application?

I need to manage (SELECT, INSERT, UPDATE, etc.) a simple SQLite database through Dart code, but all the SQLite connector libraries I could find are very outdated. I've searched for a solution and haven't seen anything compatible with Dart 2. Can anyone think of an alternative way to do this?
Note: The application and database will eventually be migrated server-side
with Azure.
Note: I am fairly new to working with SQL and RDBMS.
Thanks!
The sqlite package should provide what your need. It is pretty up-to-date including null-safety and recently updated.

Does Puppeteer have sqlite?

We're trying to create integration tests for our cordova app and puppeteer seems to be a good way to launch the ui.
But since we're using the sqlite database, it's very important for us that puppeteer also supports that option.
Does anyone know whether puppeteer has an integrated sqlite database? I do know it has localStorage.
Puppeteer is just a driver for the chrome headless. It doesn't support sqlite, You can use indexDB. Otherwise since it's all nodejs, you can simply store everything on sqlite using the sqlite3 driver.
Some helpful functions for accomplishing your target will be the exposeFunction function.

Monaca implementation of SQLite - Native via Cordova or Deprecated Web SQL?

So basically like the title says, does Monaca implement local storage database as SQLite using the native implementation via Cordova's sqlite plugin or does it rely on the deprecated use of Web SQL standard?
The Monaca docs here:
http://docs.monaca.mobi/cur/en/sampleapp/tips/storage/#creating-a-database-sqlite
Show that it is SQLite using the deprecated Web SQL standard: window.openDatabase
I would assume Monaca would actually be using Cordova implementation of native SQLite via the plugin but I cannot find it in the plugin manager nor do the docs support the implementation syntax of: window.sqlitePlugin.openDatabase
Either way, what would be the best practice use of SQLite in an app? My fear is to use what is documented (I think deprecated) and then next version have to recode everything when the Cordova plugin implements SQLite in native already.
Thanks!
XPost from here: https://community.onsen.io/topic/216/monaca-implementation-of-sqlite-native-via-cordova-or-deprecated-web-sql/2
#munsterlander this is a very good question! I actually didn’t know that Web SQL was deprecated. At the moment, Monaca includes just Web SQL plugin but the native Cordova plugin can be imported with a developer or higher plan and should work without any issue.
We will discuss about integrating the new plugin in Monaca but I cannot say when it will happen.
I don’t think you will have any issue with Web SQL but, of course, it’s better to use the native plugin.

How to determine it's a WebSQL or Sqlite database?

Pardon if this sounds noob.
We are current working on a mobile application that utilizes the Cordova framework. We would need to store data on the device, and such had decided on to use a database system.
We understand that for db storage, Cordova supports the WebSQL API, but since currently W3C stopped the development on WebSQL, we would wish to use a native SQLite database.
However, we do have a database file that are created via the WebSQL API. I understand that WebSQL actually utilize SQLite underneath(correct me if i'm wrong), but would the file display the characteristic of a WebSQL database? such as the file size limitation on mobile device?
The file size limitation is implemented in the particular copy of the SQLite library that is used to access the database, not in the database file itself.
Please note that W3C's (lack of) endorsement does not necessarily influence whether Cordova continues to use WebSQL.

Flat file database vs SQLite for fulltext search PHP

I want to develop a PHP application. And I don't want to use MySQL for my application. And I will need full-text search feature for my application. I want to know that which database is best for my needs, Flat file or SQLite database for full-text search. Please suggest me some advantages and disadvantages for both databases.
If you have to ask, sqlite is better. It works and is fast.
The advantage of using a flat-file over it is that you have no dependencies on sqlite. The disadvantages of using it is that you don't have any indexes built in, so all queries will be slower. It will take a lot of effort to develop it and make sure it is bug free.

Resources