Shardis.Query.Marten
0.2.2
dotnet add package Shardis.Query.Marten --version 0.2.2
NuGet\Install-Package Shardis.Query.Marten -Version 0.2.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Shardis.Query.Marten" Version="0.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Shardis.Query.Marten" Version="0.2.2" />
<PackageReference Include="Shardis.Query.Marten" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Shardis.Query.Marten --version 0.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Shardis.Query.Marten, 0.2.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Shardis.Query.Marten@0.2.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Shardis.Query.Marten&version=0.2.2
#tool nuget:?package=Shardis.Query.Marten&version=0.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Shardis.Query.Marten
Marten (PostgreSQL) query provider for Shardis. Supplies a Marten-tuned IShardQueryExecutor
, helpers, and wiring patterns.
Install
dotnet add package Shardis.Query.Marten --version 0.1.*
When to use
- Your shard-local persistence is Marten and you need a supported query executor.
- You want streamed cross-shard results with Marten sessions per shard.
- You prefer minimal glue: DI-friendly setup and sensible defaults.
What’s included
MartenQueryExecutor
— concreteIShardQueryExecutor<IMartenSessionFactory>
.- Fluent helpers for page size and batching.
- Sample DI wiring to connect Marten to Shardis’ query API.
Quick start
// minimal usage
var exec = MartenQueryExecutor.Instance.WithPageSize(256);
await foreach (var item in exec.QueryAsync(sessionFactory, myQuery, CancellationToken.None))
{
// consume streamed items
}
Configuration / Options
WithPageSize(int)
to control Marten fetch pages.- Provide an
IMartenSessionFactory
per shard (typical: tenant-aware factory).
Integration notes
- Works alongside
Shardis.Query
(core abstractions) and merge operators. - Typical wiring: register the executor in DI and map shard ids → Marten sessions.
Capabilities & limits
- ✅ Efficient paging via Marten APIs
- ✅ Compatible with Shardis merge modes (unordered/ordered)
- ⚠️ Ordered streaming requires a deterministic key across shards
- 🧩 TFM:
net8.0
,net9.0
; Marten compatibility varies by release
Samples & tests
- Tests: https://github.com/veggerby/shardis/tree/main/test/Shardis.Query.Marten.Tests
- Samples: https://github.com/veggerby/shardis/tree/main/samples
Versioning & compatibility
- SemVer; see CHANGELOG: https://github.com/veggerby/shardis/blob/main/CHANGELOG.md
Contributing
- PRs welcome. See https://github.com/veggerby/shardis/blob/main/CONTRIBUTING.md
License
Links
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Marten (>= 8.8.2)
- Shardis.Query (>= 0.2.2)
-
net9.0
- Marten (>= 8.8.2)
- Shardis.Query (>= 0.2.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Shardis.Query.Marten:
Package | Downloads |
---|---|
Shardis.Marten
Marten integration for Shardis: per-shard sessions and query execution adapter. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
0.2.2 | 124 | 9/11/2025 |
0.2.2-prerelease0001 | 126 | 9/11/2025 |
0.2.1 | 126 | 9/10/2025 |
0.2.1-prerelease0001 | 128 | 9/9/2025 |
0.2.0 | 132 | 9/8/2025 |
0.1.0-prerelease0086 | 134 | 9/7/2025 |
0.1.0-prerelease0085 | 138 | 9/7/2025 |
0.1.0-prerelease0084 | 130 | 8/31/2025 |
0.1.0-prerelease0083 | 131 | 8/31/2025 |
0.1.0-prerelease0082 | 173 | 8/28/2025 |
0.1.0-prerelease0075 | 171 | 8/28/2025 |
0.1.0-prerelease0067 | 176 | 8/27/2025 |
Initial release. Full notes: https://github.com/veggerby/shardis/blob/main/CHANGELOG.md#010---2025-08-25