/// <inheritdoc cref="PeriodicBatchingSink" />
 /// <summary>
 ///     Initializes a new instance of the <see cref="PostgreSqlSink" /> class.
 /// </summary>
 /// <param name="options">The sink options.</param>
 public PostgreSqlAuditSink(PostgreSqlOptions options)
 {
     this.sinkHelper = new SinkHelper(options);
 }
示例#2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="PostgreSqlSink" /> class.
 /// </summary>
 /// <param name="options">The sink options.</param>
 public SinkHelper(PostgreSqlOptions options)
 {
     this.SinkOptions     = options;
     this.isSchemaCreated = !options.NeedAutoCreateSchema;
     this.isTableCreated  = !options.NeedAutoCreateTable;
 }
 /// <inheritdoc cref="PeriodicBatchingSink" />
 /// <summary>
 ///     Initializes a new instance of the <see cref="PostgreSqlSink" /> class.
 /// </summary>
 /// <param name="options">The sink options.</param>
 public PostgreSqlSink(PostgreSqlOptions options) : base(options.BatchSizeLimit, options.Period, options.QueueLimit)
 {
     this.sinkHelper = new SinkHelper(options);
 }