/// <summary> /// The "automerge=B" command disables or enables automatic /// incremental inverted index merging for an FTS3/4 table. /// Enabling automatic incremental merge causes SQLite to do a small /// amount of inverted index merging after every INSERT operation to /// prevent spiky INSERT performance. /// </summary> /// <typeparam name="T"> /// The table on which to enable/disable the merges. /// </typeparam> /// <param name="database">The database to use.</param> /// <param name="enable"> /// True to enable automatic incremental inverted index. False to /// disable. /// </param> public static int AutoMerge <T>(this SqliteSession database, bool enable = false) { return(database.AutoMerge(typeof(T), enable)); }