Skip to content

Commit

Permalink
Bump the Arcane.Framework version (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-vitaliy authored Oct 2, 2024
1 parent 07105f4 commit 945c943
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Arcane.Stream.SqlServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Arcane.Framework" Version="0.0.29" />
<PackageReference Include="Arcane.Framework" Version="0.0.30" />
</ItemGroup>

</Project>
10 changes: 10 additions & 0 deletions src/Models/SqlServerStreamContext.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
using System.Text.Json.Serialization;
using Arcane.Framework.Configuration;
using Arcane.Framework.Services.Base;

namespace Arcane.Stream.SqlServer.Models;
Expand Down Expand Up @@ -28,8 +30,16 @@ public class SqlServerStreamContext : IStreamContext, IStreamContextWriter
/// <summary>
/// Max time to wait for rowsPerGroup to accumulate.
/// </summary>
[JsonConverter(typeof(SecondsToTimeSpanConverter))]
[JsonPropertyName("groupingIntervalSeconds")]
public TimeSpan GroupingInterval { get; set; }

/// <summary>
/// How long to wait before polling for next result set.
/// </summary>
[JsonPropertyName("changeCaptureIntervalSeconds")]
public int ChangeCaptureIntervalSeconds { get; set; }

/// <summary>
/// Number of row groups per file.
/// </summary>
Expand Down
1 change: 1 addition & 0 deletions src/Services/SqlServerGraphBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ ILogger<SqlServerGraphBuilder> logger
var source = SqlServerSource.Create(context.ConnectionString,
context.Schema,
context.Table,
TimeSpan.FromSeconds(context.ChangeCaptureIntervalSeconds),
context.CommandTimeout);

var schema = source.GetParquetSchema();
Expand Down

0 comments on commit 945c943

Please sign in to comment.