Add contentRowID to FTS5TableDefinition

This commit is contained in:
Gwendal Roué committed 2016-10-14 08:58:58 +02:00
1 parent 95844cd6c0
commit 408ecda944
1 file changed
+9
+9
View File
@@ -55,6 +55,10 @@
arguments.append("content=\(content.sqlExpression.sql)")
}
if let contentRowID = definition.contentRowID {
arguments.append("content_rowid=\(contentRowID.sqlExpression.sql)")
}
if let prefixes = definition.prefixes {
arguments.append("prefix=\(prefixes.map { "\($0)" }.joined(separator: " ").sqlExpression.sql)")
}
@@ -115,6 +119,11 @@
/// See https://www.sqlite.org/fts5.html#external_content_and_contentless_tables
public var content: String?
/// The FTS5 `content_rowid` option
///
/// See https://sqlite.org/fts5.html#external_content_tables
public var contentRowID: String?
/// Support for the FTS5 `prefix` option
///
/// See https://www.sqlite.org/fts5.html#prefix_indexes