Method CreateSyncTriggersAsync
CreateSyncTriggersAsync(SqliteConnection, string, string, IReadOnlyList<string>, CancellationToken)
Builds the sync triggers with BuildSyncTriggerSql(string, string, IReadOnlyList<string>) and executes them on connection.
public static Task CreateSyncTriggersAsync(SqliteConnection connection, string ftsTable, string contentTable, IReadOnlyList<string> columns, CancellationToken cancellationToken = default)
Parameters
connectionSqliteConnectionThe open connection to create the triggers on.
ftsTablestringThe FTS5 table to keep in sync.
contentTablestringThe external-content table the triggers observe.
columnsIReadOnlyList<string>The columns mirrored from
contentTableintoftsTable.cancellationTokenCancellationTokenCancels each command.