![]() |
VOOZH | about |
dotnet add package SurrealDb.Reactive --version 0.10.2
NuGet\Install-Package SurrealDb.Reactive -Version 0.10.2
<PackageReference Include="SurrealDb.Reactive" Version="0.10.2" />
<PackageVersion Include="SurrealDb.Reactive" Version="0.10.2" />Directory.Packages.props
<PackageReference Include="SurrealDb.Reactive" />Project file
paket add SurrealDb.Reactive --version 0.10.2
#r "nuget: SurrealDb.Reactive, 0.10.2"
#:package SurrealDb.Reactive@0.10.2
#addin nuget:?package=SurrealDb.Reactive&version=0.10.2Install as a Cake Addin
#tool nuget:?package=SurrealDb.Reactive&version=0.10.2Install as a Cake Tool
Reactive Extensions package for the official SurrealDB SDK for .NET.
View the SDK documentation here.
dotnet add package SurrealDb.Reactive
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.
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
});
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
});
The .NET release versions must follow these rules:
SurrealDb.Net targets .NET versions following the .NET Support Policy by Microsoft. Additionally, SurrealDb.Net targets .NET Standard 2.1 explicitly to continue support of the Mono runtime (Unity, Xamarin, etc...).
Note that the support for .NET standard 2.1 will be maintained until further notice.
| Version | Description | Release Date | End of Support |
|---|---|---|---|
| .NET Standard 2.1 | June 27, 2016 | N/A | |
| .NET 8 | LTS | November 14, 2023 | November 10, 2026 |
| .NET 9 | STS | November 12, 2024 | November 10, 2026 |
| .NET 10 | Current LTS | November 11, 2025 | November 14, 2028 |
This project is using CSharpier, an opinionated code formatter.
You can install it on your machine via dotnet tool.
# Run this command at the root of the project
dotnet tool install csharpier
You can then use it as a cli:
dotnet csharpier .
The list of command-line options is available here: https://csharpier.com/docs/CLI
CSharpier supports multiple code editors, including Visual Studio, Jetbrains Rider, VSCode and Neovim. You will be able to run format on file save after configuring the settings in your IDE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 netstandard2.1 is compatible. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 1 NuGet packages that depend on SurrealDb.Reactive:
| Package | Downloads |
|---|---|
|
CloudTheWolf.DSharpPlus.Scaffolding.Data
Database System for CloudTheWolf.DSharpPlus.Scaffolding |
This package is not used by any popular GitHub repositories.