Skip to main content

fts5_table

Attribute Macro fts5_table 

Source
#[fts5_table]
Expand description

Declares a CREATE VIRTUAL TABLE … USING fts5(…) table.

#[fts5_table(name = "memory_fts", tokenize = "porter unicode61")]
pub struct MemoryFts {
  #[column(unindexed)]
  pub memory_id: Text,
  pub body: Text,
}

Accepts name (required), tokenize, prefix, content, content_rowid, columnsize and detail. Indexes are rejected: SQLite cannot index a virtual table.