jaguar_orm
jaguar_orm copied to clipboard
FTS4 Full Text Search for sqflite (sqlite)
Both Android and iOS have native support for the FTS4 virtual table module extensions. Currently there is no way in jaguar to enable these.
Documentation on the feature is here for FTS4: https://sqlite.org/fts3.html
In other popular abstracted mobile ORMs, such as Entity Framework for mono/xamarin, this support is generally accompanied with code annotation support for COLLATE NOCASE. Without caseless collation, the FTS MATCH feature is generally not useful.
Documentation on collation methods are here, but specifically pertinent to this request is https://sqlite.org/datatype3.html#collation_sequence_examples
My suggestion is for adding the following for sqflite ORM only:
- Add support for table creation statements to allow for the "VIRTUAL [...] USING FTS4" flags
- Add support for comparison operator 'MATCH' when FTS4 is enabled on a table.
- Annotations support for fields to have COLLATE NOCASE option