Method BuildSyncTriggerSql
BuildSyncTriggerSql(string, string, IReadOnlyList<string>)
External-content tables need triggers; FTS5 does not observe the content table itself.
public static IReadOnlyList<string> BuildSyncTriggerSql(string ftsTable, string contentTable, IReadOnlyList<string> columns)
Parameters
ftsTablestringcontentTablestringcolumnsIReadOnlyList<string>
Returns
Remarks
A column name SQLite would not read bare - a keyword such as From, or a name that is
not one word, such as created-at - is written between double quotes. A plain name, and
a name the caller already quoted, is written as given.
BuildSyncTriggerSql(string, string, IReadOnlyList<string>, string)
Sync triggers for an external-content table whose rowid alias is named
contentRowId rather than rowid.
public static IReadOnlyList<string> BuildSyncTriggerSql(string ftsTable, string contentTable, IReadOnlyList<string> columns, string contentRowId)
Parameters
ftsTablestringcontentTablestringcolumnsIReadOnlyList<string>contentRowIdstring
Returns
Remarks
Column names are quoted as the three-argument overload describes.