Skip to content

Commit

Permalink
[ksqlDB.RestApi.Client]: separated configuration for pull and push qu…
Browse files Browse the repository at this point in the history
…eries. Added SetupPullQuery configuration option sample.
  • Loading branch information
tomasfabian committed Apr 26, 2024
1 parent 9b6c8a6 commit e569a0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Samples/ksqlDB.RestApi.Client.Sample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ public static KSqlDBContextOptions CreateQueryStreamOptions(string ksqlDbUrl)
//SetupQueryStream affects only EndpointType.QueryStream
options.Properties[KSqlDbConfigs.KsqlQueryPushV2Enabled] = "true";
})
.SetupQuery(options =>
.SetupPullQuery(options =>
{
//SetupQuery affects only EndpointType.Query
options.Properties[KSqlDbConfigs.ProcessingGuarantee] = ProcessingGuarantee.ExactlyOnce.ToKSqlValue();
options[KSqlDbConfigs.KsqlQueryPullTableScanEnabled] = "false";
})
.Options;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<!-- <PackageReference Include="ksqlDb.RestApi.Client" Version="5.1.0" /> -->
<!-- <PackageReference Include="ksqlDb.RestApi.Client" Version="6.0.0-rc.2" /> -->
<ProjectReference Include="..\..\ksqlDb.RestApi.Client\ksqlDb.RestApi.Client.csproj" />
<PackageReference Include="ksqlDb.RestApi.Client.ProtoBuf" Version="3.0.0" />
<!-- <ProjectReference Include="..\..\ksqlDb.RestApi.Client.ProtoBuf\ksqlDb.RestApi.Client.ProtoBuf.csproj" /> -->
Expand Down

0 comments on commit e569a0b

Please sign in to comment.