PowerSync.Common
0.1.2
See the version list below for details.
dotnet add package PowerSync.Common --version 0.1.2
NuGet\Install-Package PowerSync.Common -Version 0.1.2
<PackageReference Include="PowerSync.Common" Version="0.1.2" />
<PackageVersion Include="PowerSync.Common" Version="0.1.2" />
<PackageReference Include="PowerSync.Common" />
paket add PowerSync.Common --version 0.1.2
#r "nuget: PowerSync.Common, 0.1.2"
#:package PowerSync.Common@0.1.2
#addin nuget:?package=PowerSync.Common&version=0.1.2
#tool nuget:?package=PowerSync.Common&version=0.1.2
PowerSync SDK .NET Common
This package contains a .NET implementation of a PowerSync database connector and streaming sync bucket implementation.
⚠️ Project Status & Release Note
This package is in beta and is considered ready for production use for tested use cases. See our feature status definitions here.
Installation
This package is published on NuGet.
dotnet add package PowerSync.Common
Usage
Simple Query
private record ListResult(string id, string name, string owner_id, string created_at);
static async Task Main() {
var db = new PowerSyncDatabase(new PowerSyncDatabaseOptions
{
Database = new SQLOpenOptions { DbFilename = "cli-example.db" },
Schema = AppSchema.PowerSyncSchema,
});
await db.Init();
var lists = await db.GetAll<ListResult>("select * from lists");
}
Watched queries
Watched queries will automatically update when a dependant table is updated.
Call Watch() synchronously to ensure the watcher is fully initialized before execution continues.
var cts = new CancellationTokenSource();
var listener = db.Watch<ListResult>("select * from lists", null, new SQLWatchOptions { Signal = cts.Token });
_ = Task.Run(async () =>
{
await foreach (var results in listener)
{
table.Rows.Clear();
foreach (var line in results)
{
table.AddRow(line.id, line.name, line.owner_id, line.created_at);
}
}
}, cts.Token);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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-android34.0 is compatible. net8.0-browser was computed. net8.0-ios was computed. net8.0-ios18.0 is compatible. net8.0-maccatalyst was computed. net8.0-maccatalyst18.0 is compatible. 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-android35.0 is compatible. net9.0-browser was computed. net9.0-ios was computed. net9.0-ios18.0 is compatible. net9.0-maccatalyst was computed. net9.0-maccatalyst18.0 is compatible. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Dapper (>= 2.1.66)
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.1)
- Microsoft.Data.Sqlite (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Logging.Console (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
- Nito.AsyncEx (>= 5.1.2)
- System.Threading.Channels (>= 8.0.0)
- ThrottleDebounce (>= 2.0.1)
-
net6.0
- Dapper (>= 2.1.66)
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.1)
- Microsoft.Data.Sqlite (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Logging.Console (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
- Nito.AsyncEx (>= 5.1.2)
- System.Threading.Channels (>= 8.0.0)
- ThrottleDebounce (>= 2.0.1)
-
net8.0
- Dapper (>= 2.1.66)
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.1)
- Microsoft.Data.Sqlite (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Logging.Console (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
- Nito.AsyncEx (>= 5.1.2)
- System.Threading.Channels (>= 8.0.0)
- ThrottleDebounce (>= 2.0.1)
-
net8.0-android34.0
- Dapper (>= 2.1.66)
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.1)
- Microsoft.Data.Sqlite (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Logging.Console (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
- Nito.AsyncEx (>= 5.1.2)
- System.Threading.Channels (>= 8.0.0)
- ThrottleDebounce (>= 2.0.1)
-
net8.0-ios18.0
- Dapper (>= 2.1.66)
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.1)
- Microsoft.Data.Sqlite (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Logging.Console (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
- Nito.AsyncEx (>= 5.1.2)
- System.Threading.Channels (>= 8.0.0)
- ThrottleDebounce (>= 2.0.1)
-
net8.0-maccatalyst18.0
- Dapper (>= 2.1.66)
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.1)
- Microsoft.Data.Sqlite (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Logging.Console (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
- Nito.AsyncEx (>= 5.1.2)
- System.Threading.Channels (>= 8.0.0)
- ThrottleDebounce (>= 2.0.1)
-
net9.0
- Dapper (>= 2.1.66)
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.1)
- Microsoft.Data.Sqlite (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Logging.Console (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
- Nito.AsyncEx (>= 5.1.2)
- System.Threading.Channels (>= 8.0.0)
- ThrottleDebounce (>= 2.0.1)
-
net9.0-android35.0
- Dapper (>= 2.1.66)
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.1)
- Microsoft.Data.Sqlite (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Logging.Console (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
- Nito.AsyncEx (>= 5.1.2)
- System.Threading.Channels (>= 8.0.0)
- ThrottleDebounce (>= 2.0.1)
-
net9.0-ios18.0
- Dapper (>= 2.1.66)
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.1)
- Microsoft.Data.Sqlite (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Logging.Console (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
- Nito.AsyncEx (>= 5.1.2)
- System.Threading.Channels (>= 8.0.0)
- ThrottleDebounce (>= 2.0.1)
-
net9.0-maccatalyst18.0
- Dapper (>= 2.1.66)
- Microsoft.Bcl.AsyncInterfaces (>= 9.0.1)
- Microsoft.Data.Sqlite (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 6.0.0)
- Microsoft.Extensions.Logging.Console (>= 6.0.0)
- Newtonsoft.Json (>= 13.0.3)
- Nito.AsyncEx (>= 5.1.2)
- System.Threading.Channels (>= 8.0.0)
- ThrottleDebounce (>= 2.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on PowerSync.Common:
| Package | Downloads |
|---|---|
|
PowerSync.Maui
PowerSync.Maui is a package that enables MAUI usage for PowerSync |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.3-dev.1 | 62 | 5/19/2026 |
| 0.1.2 | 231 | 5/7/2026 |
| 0.1.2-dev.2 | 96 | 4/23/2026 |
| 0.1.2-dev.1 | 78 | 4/14/2026 |
| 0.1.1 | 177 | 4/7/2026 |
| 0.1.0 | 155 | 3/26/2026 |
| 0.0.11-alpha.1 | 83 | 3/10/2026 |
| 0.0.10-alpha.1 | 92 | 2/19/2026 |
| 0.0.9-alpha.1 | 97 | 2/11/2026 |
| 0.0.8-alpha.1 | 103 | 2/2/2026 |
| 0.0.7-alpha.1 | 112 | 1/12/2026 |
| 0.0.6-alpha.1 | 109 | 1/5/2026 |
| 0.0.5-alpha.1 | 472 | 12/9/2025 |
| 0.0.4-dev.4 | 217 | 9/29/2025 |
| 0.0.4-dev.3 | 190 | 9/29/2025 |
| 0.0.4-dev.2 | 193 | 9/29/2025 |
| 0.0.4-dev.1 | 278 | 9/15/2025 |
| 0.0.4-alpha.1 | 188 | 10/2/2025 |