PgKeyValueDB 3.3.0
dotnet add package PgKeyValueDB --version 3.3.0
NuGet\Install-Package PgKeyValueDB -Version 3.3.0
<PackageReference Include="PgKeyValueDB" Version="3.3.0" />
<PackageVersion Include="PgKeyValueDB" Version="3.3.0" />
<PackageReference Include="PgKeyValueDB" />
paket add PgKeyValueDB --version 3.3.0
#r "nuget: PgKeyValueDB, 3.3.0"
#:package PgKeyValueDB@3.3.0
#addin nuget:?package=PgKeyValueDB&version=3.3.0
#tool nuget:?package=PgKeyValueDB&version=3.3.0
PgKeyValueDB
Introduction
A simple as possible document database abstraction and implementation using PostgreSQL.
It uses POCO mapping to allow use of any C# instance that can be (de)serialized from/to a JSON object as a value.
Usage
It's recommended to use .NET Dependency Injection and setup via your Startup class like this:
services.AddPgKeyValueDB(connectionString);
You can then inject PgKeyValueDB as constructor parameter where you need it.
The PgKeyValueDB instance offers basic API to do Create, Update, Upsert, Get, Exists, and Remove operations (and async variants) with optional partition key and expiration.
Additional API a GetListAsync, Count and RemoveAll with Linq expression filtering support. For large partitions it's recommended to create manual indexes for specific expressions.
FAQ
What about distributed/concurrent usage?
Should be no different from standard PostgreSQL behaviour i.e https://www.postgresql.org/docs/current/transaction-iso.html.
Note that default isolation level can be set in connection string with fx Options=-c default_transaction_isolation=serializable.
| 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
- Npgsql (>= 10.0.1)
- Npgsql.DependencyInjection (>= 10.0.1)
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 |
|---|---|---|
| 3.3.0 | 554 | 1/9/2026 |
| 3.2.0 | 116 | 1/6/2026 |
| 3.1.2 | 114 | 12/29/2025 |
| 3.1.1 | 249 | 12/4/2025 |
| 3.1.0 | 203 | 12/4/2025 |
| 3.0.0 | 197 | 11/23/2025 |
| 2.0.0 | 136 | 10/11/2025 |
| 1.6.0 | 672 | 8/15/2025 |
| 1.5.0 | 151 | 8/15/2025 |
| 1.4.0 | 627 | 7/23/2025 |
| 1.3.0 | 563 | 7/22/2025 |
| 1.2.3 | 580 | 2/28/2025 |
| 1.2.1 | 151 | 2/28/2025 |
| 1.2.0 | 179 | 2/26/2025 |
| 1.1.0 | 170 | 2/24/2025 |
| 1.0.1 | 230 | 2/5/2025 |
| 1.0.0 | 347 | 11/20/2024 |
| 0.10.0 | 178 | 10/27/2024 |
| 0.9.0 | 163 | 10/26/2024 |
| 0.8.0 | 165 | 10/26/2024 |