Cohesive.Adapters.Postgres.Infra
0.1.0-alpha.149
See the version list below for details.
dotnet add package Cohesive.Adapters.Postgres.Infra --version 0.1.0-alpha.149
NuGet\Install-Package Cohesive.Adapters.Postgres.Infra -Version 0.1.0-alpha.149
<PackageReference Include="Cohesive.Adapters.Postgres.Infra" Version="0.1.0-alpha.149" />
<PackageVersion Include="Cohesive.Adapters.Postgres.Infra" Version="0.1.0-alpha.149" />
<PackageReference Include="Cohesive.Adapters.Postgres.Infra" />
paket add Cohesive.Adapters.Postgres.Infra --version 0.1.0-alpha.149
#r "nuget: Cohesive.Adapters.Postgres.Infra, 0.1.0-alpha.149"
#:package Cohesive.Adapters.Postgres.Infra@0.1.0-alpha.149
#addin nuget:?package=Cohesive.Adapters.Postgres.Infra&version=0.1.0-alpha.149&prerelease
#tool nuget:?package=Cohesive.Adapters.Postgres.Infra&version=0.1.0-alpha.149&prerelease
Cohesive.Adapters.Postgres.Infra
Optional infrastructure evidence derived from native PostgreSQL query preparation. The base Postgres adapter has no Infra dependency. No connections, resources or migrations are created here.
var queries = PostgresInfrastructure.Prepare(new("orders/postgres"), bindings,
new QuerySnapshotRequirement("orders/details", "1", query.CompilationRequest));
foreach (var capability in queries.Requirements) storage.Requires(capability);
// In an Aspire AppHost, import Cohesive.Adapters.Aspire.Postgres:
associations.Resource(storeNode, nativeDatabase, queries, lifecycleAuthority);
QuerySnapshotRequirement belongs to provider-neutral Cohesive.Relations.Infra. The author owns its
stable identity and explicit semantic revision. Neither a compiler upgrade nor a physical table rename
changes that identity. Bump the requirement revision when changing its semantic contract. The example
also bumps its infrastructure definition revision to 3 for this migration. There is no compatibility
alias for the unreleased PostgresInfrastructure.QuerySnapshot fingerprint-derived identity.
Preparation consumes the requirement's canonical request. Evidence validates equality of the required plan, artifact provenance plan and storage binding's compiled-plan fingerprint. Compiler and native mapping changes remain visible in artifact/binding evidence fingerprints rather than silently renaming the requirement. Other adapters can implement the same requirement after validating its exact plan. Explicit manual Infra evidence remains an author-attested escape hatch; it does not acquire these checks.
Declare the query list once: preparation exposes the capabilities for Infra requirements and retains
implementation evidence bound to the logical database. The optional Aspire/Postgres association checks
PostgresDatabaseResource.DatabaseName, not the native resource label, before associating evidence.
Other native hosts must use ForDatabase with independent native database metadata.
Each artifact must be a complete, fully placed, unpaged query-row artifact on the same database. Empty/duplicate sets, mixed databases, mismatched plans, source-scoped bindings and paging are rejected. A successful preparation establishes an independent statement snapshot per query, never a distributed snapshot or a common transaction across calls. Schema installation, privileges, runtime availability, conditional writes and transition receipt atomicity are not certified.
Mappings have one authoring path: PostgresPersistenceBindings.Define(database, configure).Bind(runtime). Define freezes
mappings; runtime registration shares the immutable result. The runtime-first constructor/Entity path
was removed. Standalone and composed queries share mapping lookup and input placement; semantic failures
use RelationQueryPreparationException, while native lowering failures retain PostgresQueryPreparationException.
Tests cover public artifact rehydration, exact-plan rejection, unsupported paging/source scope, database affinity, stable versioned identities, shared semantic diagnostics and offline/runtime preparation equality.
| 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
- Cohesive.Adapters.Postgres (>= 0.1.0-alpha.149)
- Cohesive.Relations.Infra (>= 0.1.0-alpha.149)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Cohesive.Adapters.Postgres.Infra:
| Package | Downloads |
|---|---|
|
Cohesive.Adapters.Aspire.Postgres
Cohesive semantic system definition and orchestration building blocks. |
|
|
Cohesive.Adapters.Postgres.Services
Native query readers and infrastructure evidence derived from service selections. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-alpha.156 | 39 | 10/22/2026 |
| 0.1.0-alpha.155 | 50 | 10/20/2026 |
| 0.1.0-alpha.154 | 49 | 10/20/2026 |
| 0.1.0-alpha.153 | 47 | 10/20/2026 |
| 0.1.0-alpha.152 | 52 | 10/19/2026 |
| 0.1.0-alpha.151 | 58 | 10/19/2026 |
| 0.1.0-alpha.150 | 51 | 10/19/2026 |
| 0.1.0-alpha.149 | 57 | 10/18/2026 |
| 0.1.0-alpha.148 | 58 | 10/18/2026 |
| 0.1.0-alpha.147 | 58 | 10/18/2026 |
| 0.1.0-alpha.146 | 60 | 10/18/2026 |
| 0.1.0-alpha.145 | 65 | 10/17/2026 |
| 0.1.0-alpha.144 | 59 | 10/17/2026 |
| 0.1.0-alpha.143 | 62 | 10/16/2026 |
| 0.1.0-alpha.142 | 57 | 10/16/2026 |
| 0.1.0-alpha.141 | 59 | 10/16/2026 |
| 0.1.0-alpha.140 | 52 | 10/15/2026 |