Cohesive.Adapters.Postgres
0.1.0-alpha.80
dotnet add package Cohesive.Adapters.Postgres --version 0.1.0-alpha.80
NuGet\Install-Package Cohesive.Adapters.Postgres -Version 0.1.0-alpha.80
<PackageReference Include="Cohesive.Adapters.Postgres" Version="0.1.0-alpha.80" />
<PackageVersion Include="Cohesive.Adapters.Postgres" Version="0.1.0-alpha.80" />
<PackageReference Include="Cohesive.Adapters.Postgres" />
paket add Cohesive.Adapters.Postgres --version 0.1.0-alpha.80
#r "nuget: Cohesive.Adapters.Postgres, 0.1.0-alpha.80"
#:package Cohesive.Adapters.Postgres@0.1.0-alpha.80
#addin nuget:?package=Cohesive.Adapters.Postgres&version=0.1.0-alpha.80&prerelease
#tool nuget:?package=Cohesive.Adapters.Postgres&version=0.1.0-alpha.80&prerelease
Cohesive.Adapters.Postgres
Cohesive.Adapters.Postgres realizes Cohesive Relations, Storage, materialization, Process durability, and logical
replication semantics on PostgreSQL through explicit bindings and Npgsql-backed runtime ports.
Install
dotnet add package Cohesive.Adapters.Postgres
Start with safe SQL construction
The standalone builder quotes identifiers and parameterizes values. It is useful on its own and is also shared by the canonical compiler:
var template = new SqlSelectBuilder(
new SqlQualifiedTable("transport", "loads"),
"l")
.Select(SqlExpression.Column("l", "id"), "id")
.Where(SqlExpression.Binary(
SqlBinaryOperator.Equal,
SqlExpression.Column("l", "status"),
SqlExpression.RuntimeParameter("status")))
.OrderBy(SqlExpression.Column("l", "id"))
.Limit(100)
.BuildTemplate(PostgresSqlDialect.Instance);
var statement = template.Bind(PostgresSqlDialect.Instance, new Dictionary<string, object?>
{
["status"] = "Open"
});
For canonical Relations, author the relation first, compile its exact demand, place acquired inputs in a PostgreSQL execution domain, then bind semantic fields to tables and columns. Semantic-path conventions handle ordinary names; explicit mappings and evidence are required where the physical model differs.
Implemented interpretations
- Parameterized native SQL compilation for the declared PostgreSQL target profile.
- Npgsql source acquisition for bounded enumeration, identity batches, and predicate batches.
- Exact Relation storage-binding authoring and capability evidence.
- Entity repositories and aggregate storage realization.
- Durable Process aggregate persistence and distribution ledgers.
- Materialization state, generation routing, rebuild, and reconciliation sources.
- Logical replication with exact slot, baseline, checkpoint, and settlement evidence.
Current boundary
The adapter preserves only semantics proven by its target profiles and binding evidence. Text equality and ordering, temporal intervals, isolation, pagination, and change-feed assumptions are distinct claims. Missing evidence produces structured diagnostics before native compilation or execution.
The standalone SQL builder expresses PostgreSQL behavior; using it does not manufacture a canonical Relation plan or prove equivalence with one.
Continue
- Internals contains Process storage, materialization, SQL construction, exact bindings, acquisition, logical replication, end-to-end compilation, and repository details.
- Relations execution and adapters compares native joins with composed reads.
- Relations capability reference is generated from the target profiles.
Cohesive.Storageowns the provider-neutral storage semantics.
| 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.Sql (>= 0.1.0-alpha.80)
- Cohesive.Processes.Distribution (>= 0.1.0-alpha.80)
- Cohesive.Relations (>= 0.1.0-alpha.80)
- Cohesive.Storage (>= 0.1.0-alpha.80)
- Npgsql (>= 10.0.3)
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.80 | 34 | 9/8/2026 |
| 0.1.0-alpha.79 | 49 | 9/7/2026 |
| 0.1.0-alpha.78 | 54 | 9/7/2026 |
| 0.1.0-alpha.77 | 56 | 9/7/2026 |
| 0.1.0-alpha.76 | 50 | 9/6/2026 |
| 0.1.0-alpha.75 | 50 | 9/6/2026 |
| 0.1.0-alpha.74 | 53 | 9/6/2026 |
| 0.1.0-alpha.73 | 69 | 9/5/2026 |
| 0.1.0-alpha.72 | 47 | 9/5/2026 |
| 0.1.0-alpha.71 | 49 | 9/4/2026 |
| 0.1.0-alpha.70 | 47 | 9/4/2026 |
| 0.1.0-alpha.69 | 49 | 9/2/2026 |
| 0.1.0-alpha.68 | 51 | 8/30/2026 |
| 0.1.0-alpha.67 | 55 | 8/26/2026 |
| 0.1.0-alpha.66.5 | 56 | 9/6/2026 |
| 0.1.0-alpha.66.4 | 55 | 8/30/2026 |
| 0.1.0-alpha.66.3 | 49 | 8/29/2026 |
| 0.1.0-alpha.66.2 | 55 | 8/27/2026 |
| 0.1.0-alpha.66.1 | 51 | 8/26/2026 |
| 0.1.0-alpha.66 | 59 | 8/25/2026 |