Winche.Database.AspNetCore.WebSockets 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Winche.Database.AspNetCore.WebSockets --version 1.0.0
                    
NuGet\Install-Package Winche.Database.AspNetCore.WebSockets -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Winche.Database.AspNetCore.WebSockets" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Winche.Database.AspNetCore.WebSockets" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Winche.Database.AspNetCore.WebSockets" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Winche.Database.AspNetCore.WebSockets --version 1.0.0
                    
#r "nuget: Winche.Database.AspNetCore.WebSockets, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Winche.Database.AspNetCore.WebSockets@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Winche.Database.AspNetCore.WebSockets&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Winche.Database.AspNetCore.WebSockets&version=1.0.0
                    
Install as a Cake Tool

Winche.Database

A JSON document database layer built on top of PostgreSQL. Store, query, and subscribe to JSON documents using a structured query language — with PostgreSQL as the storage backend via JSONB.

Supports real-time subscriptions, ACID transactions, aggregation pipelines, and integrates with Winche.Sentinel for access control.

Install

dotnet add package Winche.Database

Add the REST or WebSocket API integrations as needed:

dotnet add package Winche.Database.AspNetCore.Rest
dotnet add package Winche.Database.AspNetCore.WebSockets

Quick Start

1. Configure appsettings.json

{
  "WincheDatabase": {
    "Schema": "public",
    "TableName": "documents",
    "TransactionConfig": {
      "TotalTimeoutSpan": "00:05:00",
      "IdleTimeoutSpan": "00:05:00",
      "CleanupInterval": "00:00:01"
    }
  }
}

2. Register services

builder.Services.AddWincheDatabase(connectionString, builder.Configuration);

// Add REST API (optional)
builder.Services.AddWincheDatabaseRestApi();

// Add WebSocket API (optional)
builder.Services.AddWincheDatabaseWsApi();

3. Initialize schema and map endpoints

// Ensures the documents table and indexes exist
app.UseWincheDatabase();

// Map REST routes (default prefix: "documents")
app.UseWincheDatabaseRestApi();

// Map WebSocket route (connects at /documents/ws)
app.UseWincheDatabaseWsApi();

See samples/WebApi for a complete working example.

Features

  • Document storage — Store arbitrary JSON documents with automatic metadata (id, version, timestamps)
  • Querying — Filter with 19+ conditional operators, sort, limit, offset, and cursor-based pagination
  • Real-time subscriptions — Subscribe to queries and receive live updates over WebSocket when documents change
  • Transactions — ACID transactions with commit/rollback, idle timeout, and automatic cleanup
  • Aggregation pipelines — MongoDB-style pipeline stages: match, lookup, unwind, group, project, sort, limit, skip
  • Batch operations — Atomic commit of multiple operations in a single request
  • Sync mutations — Conflict-free document mutations (Set, Update, Delete) via mutation batches
  • Access control — Document-level access rules via Winche.Sentinel integration
  • PostgreSQL backend — All data stored as JSONB; queries translated to native PostgreSQL SQL

Packages

Package Description
Winche.Database Core document store: schema, CRUD, queries, transactions, subscriptions
Winche.Database.AspNetCore.Rest ASP.NET Core REST endpoints
Winche.Database.AspNetCore.WebSockets ASP.NET Core WebSocket protocol and real-time event dispatch

Requirements

  • .NET 10.0
  • PostgreSQL (any recent version with JSONB support)

License

Elastic License 2.0

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
10.0.0 155 7/5/2026
9.1.0 132 6/30/2026
9.0.0 132 6/28/2026
8.4.0 125 6/24/2026
8.3.0 134 6/21/2026
8.2.0 143 6/20/2026
8.1.0 200 6/17/2026
8.0.0 131 6/16/2026
7.0.0 119 6/15/2026
6.0.0 128 6/10/2026
5.2.0 120 6/9/2026
5.1.0 130 6/8/2026
5.0.0 125 6/8/2026
4.0.0 127 6/8/2026
3.0.0 137 6/7/2026
2.0.1 146 5/27/2026
2.0.0 121 5/27/2026
1.0.0 124 5/25/2026