SurrealDb.Reactive 1.0.0

dotnet add package SurrealDb.Reactive --version 1.0.0
                    
NuGet\Install-Package SurrealDb.Reactive -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="SurrealDb.Reactive" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SurrealDb.Reactive" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="SurrealDb.Reactive" />
                    
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 SurrealDb.Reactive --version 1.0.0
                    
#r "nuget: SurrealDb.Reactive, 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 SurrealDb.Reactive@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=SurrealDb.Reactive&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=SurrealDb.Reactive&version=1.0.0
                    
Install as a Cake Tool

SurrealDb.Reactive

Reactive Extensions package for the official SurrealDB SDK for .NET.

Documentation

View the SDK documentation here.

How to install

dotnet add package SurrealDb.Reactive

Getting started

Follow the documentation of the .NET SDK to setup a new SurrealDbClient. When done, you can now use the methods provided by the Reactive Extensions package for .NET.

Examples - Observe Live Query changes

client
    .ObserveTable<PostRecord>("post")
    // Similar to observing the query "LIVE SELECT * FROM post;"
    .Subscribe(response =>
    {
        // you can listen to any live query response
    });
client
    .ObserveTable<PostRecord>("post")
    .OfType<SurrealDbLiveQueryCreateResponse<PostRecord>>()
    .Select(r => r.Result)
    .Subscribe(record =>
    {
        // you can filter out the LQ type and get every created records in realtime
    });

Examples - Record table aggregation

If you want to get a list of all records being created/updated/deleted since watching the Live Query, you can aggregate all the records using the AggregateRecords.

using var liveQuery = client.ListenLive<PostRecord>(liveQueryUuid);

liveQuery
    .GetResults()
    .ToObservable()
    .AggregateRecords(new Dictionary<string, TestRecord>())
    .Select(x => x.Values.ToList())
    .Subscribe(records =>
    {
        // You can consume the list of all records, being updating in realtime on each CREATE, UPDATE or DELETE event
    });
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 is compatible.  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 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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on SurrealDb.Reactive:

Package Downloads
CloudTheWolf.DSharpPlus.Scaffolding.Data

Database System for CloudTheWolf.DSharpPlus.Scaffolding

AeroDB

.NET Transactional Document DB and Event Store on SurrealDB

AeroDB.Sable

.NET Transactional Document DB and Event Store on SurrealDB

Dali

.NET Transactional Document DB and Event Store on SurrealDB

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 144 7/28/2026
0.10.2 1,341 4/24/2026
0.9.0 726 7/25/2025
0.8.0 733 3/28/2025
0.7.0 381 12/12/2024
0.6.0 301 10/21/2024
0.5.1 721 7/12/2024
0.5.0 665 4/4/2024
0.4.0 327 2/8/2024
0.3.1 300 1/19/2024
0.2.0 775 11/21/2023