EnvelopeFlow.Digests.Stores.Postgres
0.1.0-alpha.2.1
See the version list below for details.
dotnet add package EnvelopeFlow.Digests.Stores.Postgres --version 0.1.0-alpha.2.1
NuGet\Install-Package EnvelopeFlow.Digests.Stores.Postgres -Version 0.1.0-alpha.2.1
<PackageReference Include="EnvelopeFlow.Digests.Stores.Postgres" Version="0.1.0-alpha.2.1" />
<PackageVersion Include="EnvelopeFlow.Digests.Stores.Postgres" Version="0.1.0-alpha.2.1" />
<PackageReference Include="EnvelopeFlow.Digests.Stores.Postgres" />
paket add EnvelopeFlow.Digests.Stores.Postgres --version 0.1.0-alpha.2.1
#r "nuget: EnvelopeFlow.Digests.Stores.Postgres, 0.1.0-alpha.2.1"
#:package EnvelopeFlow.Digests.Stores.Postgres@0.1.0-alpha.2.1
#addin nuget:?package=EnvelopeFlow.Digests.Stores.Postgres&version=0.1.0-alpha.2.1&prerelease
#tool nuget:?package=EnvelopeFlow.Digests.Stores.Postgres&version=0.1.0-alpha.2.1&prerelease
EnvelopeFlow.Digests.Stores.Postgres
Optional durable IDigestStore behind an application-owned NpgsqlDataSource. Construction and reads never initialize a schema. Explicitly call InitializeAsync, or inspect/plan/apply PostgresDigestMigrations.Catalog with PostgresMigrationRunner under the deployment policy in docs/migrations.md. Payload format remains v1; schema v2 bounds the due-discovery scope index with a generated SHA256 key and keeps exact raw scope checks. Existing versioned v1 installations apply the appended migration; there is no unversioned legacy baseline to adopt. Pause old binaries for the table/index rewrite; see bounded-key deployment. There are no provider credentials, endpoints or user/history models in its schema.
One ef_digest_owners row stores a bounded JSON ledger with the exact full scope, recipient/authentication identity, category and grouping key. Its existing SHA-256 owner key remains unchanged; schema v2 separately bounds the scope discovery index for long Unicode identifiers. Reads verify the exact stored columns and ledger binding against the owner hash. Scope columns use deterministic C collation. Intake serializes missing/existing owner mutations with a transaction lock; a separate short creation lock bounds global owner count. Mutation, source receipt/dedup, generation, prepared bytes and admission checkpoints commit atomically. Failure rolls back the complete ledger change.
Scoped due claims use an indexed next_due and FOR UPDATE SKIP LOCKED. Database time is sampled after row ownership. Claims freeze membership, increment revision/fence and persist an absolute lease. Every preparation/admission checkpoint requires current revision/fence, live lease and group expiry. Next due includes lease/expiry recovery. Mutations have a 30-second operation deadline in addition to normal caller cancellation; unsafe/corrupt/future-version ledgers fail closed without changing/deleting keys or invoking a provider.
The adapter intentionally bounds and copies one owner ledger per operation; retention and audit are explicit, and high fan-in workloads can supply a different IDigestStore. Limits are the same as the memory reference and are process configuration, not a guarantee against unrelated external writers. All instances sharing a store should use compatible limits and deployment policy. Group/source purge never resets generation, does not automatically evict owners, and protects incomplete prepared-part checkpoint evidence. Delivery uncertainty remains in the delivery/application store and requires sink proof before group cleanup.
Real database tests cover reusable store contracts, transaction failure rollback, cancellation/stale claims, incompatible payload preservation, and separate child processes recovering durable admission committed before checkpoint. They use isolated schemas and an explicitly supplied disposable ENVELOPEFLOW_TEST_POSTGRES. The child fixture resolves build output through MSBuild rather than assuming a bin layout. No live/paid provider is involved; durable admission is separate from provider submission.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- EnvelopeFlow.Digests (>= 0.1.0-alpha.2.1)
- EnvelopeFlow.Stores.Migrations.Postgres (>= 0.1.0-alpha.2.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.10)
- Npgsql (>= 10.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-alpha.3.1 | 45 | 11/22/2026 |
| 0.1.0-alpha.2.1 | 58 | 11/9/2026 |