Fts5 class

Marks an Entity annotated class as an FTS5 entity. This class will have a mapping SQLite FTS5 table in the database.

Unlike FTS3 and FTS4, FTS5 is supported by the SQLite builds bundled by package:sqlite3, including the encrypted ones. The SQLite of Android used by the sqflite plugin lacks it, though, so FTS5 entities require the FFI database factory there.

The primary key of the entity has to be an integer field of the column rowid, which is the row id of the table. As SELECT * doesn't return the row id of FTS5 tables, queries of the entity have to select it explicitly, e.g. SELECT rowid, * FROM mail WHERE mail MATCH :query.

SQLite FTS5 documentation

Constructors

Fts5({String tokenizer = FtsTokenizer.unicode61, List<String> tokenizerArgs = const [], List<int> prefixes = const [], List<String> notIndexed = const []})
Creates an Fts5 constant which can be used to mark an Entity annotated class as an FTS5 entity.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
notIndexed → List<String>
The names of the columns which are stored but not indexed for full-text queries.
final
prefixes → List<int>
The lengths of prefixes to index for faster prefix queries, e.g. [2, 3].
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tokenizer → String
The tokenizer to be used in the FTS table. The default value is FtsTokenizer.unicode61. Tokenizer arguments can be defined with tokenizerArgs.
final
tokenizerArgs → List<String>
Optional arguments to configure the defined tokenizer.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited