mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Add contentRowID to FTS5TableDefinition
This commit is contained in:
1 parent
95844cd6c0
commit
408ecda944
1 file changed
+9
@@ -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
|
||||
|
||||
Reference in new issue
Block a user