SetNet.Persistence.Postgres
1.2.0
dotnet add package SetNet.Persistence.Postgres --version 1.2.0
NuGet\Install-Package SetNet.Persistence.Postgres -Version 1.2.0
<PackageReference Include="SetNet.Persistence.Postgres" Version="1.2.0" />
<PackageVersion Include="SetNet.Persistence.Postgres" Version="1.2.0" />
<PackageReference Include="SetNet.Persistence.Postgres" />
paket add SetNet.Persistence.Postgres --version 1.2.0
#r "nuget: SetNet.Persistence.Postgres, 1.2.0"
#:package SetNet.Persistence.Postgres@1.2.0
#addin nuget:?package=SetNet.Persistence.Postgres&version=1.2.0
#tool nuget:?package=SetNet.Persistence.Postgres&version=1.2.0
SetNet.Persistence.Postgres
PostgreSQL-backed IDocumentStore<T> / ISnapshotStore for SetNet.Persistence via Npgsql.
Each value is stored in a JSONB column, so custom fields need no schema change — and, unlike an opaque blob, they stay queryable and indexable in SQL:
-- find VIP characters straight from the DB
SELECT id FROM setnet_documents WHERE (doc->>'VipUntil')::timestamptz > now();
-- and index it
CREATE INDEX ON setnet_documents ((doc->>'VipUntil'));
using SetNet.Persistence.Postgres;
var store = new PostgresDocumentStore<CharacterData>("Host=localhost;Username=game;Password=…;Database=game");
await store.SetAsync("char:1", new CharacterData { Name = "Archer", Level = 80, VipUntil = DateTime.UtcNow.AddDays(30) });
var c = await store.GetAsync("char:1");
new PostgresDocumentStore<T>(connectionString, table = "setnet_documents", json?) — auto-creates (id text pk, doc jsonb), upserts via INSERT … ON CONFLICT. PostgresSnapshotStore uses a BYTEA column. Table names are trusted constants; ids/values are parameterized.
Depends on SetNet.Persistence + Npgsql. Targets net8.0.
License
MIT
| 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 was computed. 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. |
-
net8.0
- Npgsql (>= 8.0.3)
- SetNet.Persistence (>= 1.2.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 |
|---|---|---|
| 1.2.0 | 148 | 8/5/2026 |