public SQLiteProcessor( IDbConnection connection, IMigrationGenerator generator, IAnnouncer announcer, [NotNull] IMigrationProcessorOptions options, IDbFactory factory) : base(connection, factory, generator, announcer, options) { _batchParserFactory = new SQLiteBatchParserFactory(null); }
/// <summary> /// Initializes a new instance of the <see cref="SQLiteProcessor"/> class. /// </summary> /// <param name="factory">The SQLite DB factory.</param> /// <param name="generator">The migration generator.</param> /// <param name="logger">The logger.</param> /// <param name="options">The options.</param> /// <param name="connectionStringAccessor">The connection string accessor.</param> /// <param name="batchParserFactory">The batch parser factory.</param> public SQLiteProcessor( [NotNull] SQLiteDbFactory factory, [NotNull] SQLiteGenerator generator, [NotNull] ILogger <SQLiteProcessor> logger, [NotNull] IOptionsSnapshot <ProcessorOptions> options, [NotNull] IConnectionStringAccessor connectionStringAccessor, [NotNull] SQLiteBatchParserFactory batchParserFactory) : base(() => factory.Factory, generator, logger, options.Value, connectionStringAccessor) { _batchParserFactory = batchParserFactory; }
public SQLiteProcessor( [NotNull] SQLiteDbFactory factory, [NotNull] SQLiteGenerator generator, [NotNull] ILogger <SQLiteProcessor> logger, [NotNull] IOptionsSnapshot <ProcessorOptions> options, [NotNull] IConnectionStringAccessor connectionStringAccessor, [NotNull] IServiceProvider serviceProvider) : base(() => factory.Factory, generator, logger, options.Value, connectionStringAccessor) { _batchParserFactory = serviceProvider.GetService <SQLiteBatchParserFactory>() ?? new SQLiteBatchParserFactory(serviceProvider); }