EntglDb.Persistence
1.0.2
dotnet add package EntglDb.Persistence --version 1.0.2
NuGet\Install-Package EntglDb.Persistence -Version 1.0.2
<PackageReference Include="EntglDb.Persistence" Version="1.0.2" />
<PackageVersion Include="EntglDb.Persistence" Version="1.0.2" />
<PackageReference Include="EntglDb.Persistence" />
paket add EntglDb.Persistence --version 1.0.2
#r "nuget: EntglDb.Persistence, 1.0.2"
#:package EntglDb.Persistence@1.0.2
#addin nuget:?package=EntglDb.Persistence&version=1.0.2
#tool nuget:?package=EntglDb.Persistence&version=1.0.2
EntglDb.Persistence
Base persistence abstractions and implementations for EntglDb - provides foundational storage components used by all persistence providers.
What's Included
This package provides core persistence services that other providers extend:
- OplogStore: Base implementation for append-only operation log storage
- VectorClockService: Thread-safe in-memory vector clock management
- DocumentMetadataStore: Document versioning and metadata tracking
- SnapshotStore: Snapshot creation and restoration logic
- PeerConfigurationStore: Peer node configuration persistence
Architecture Role
EntglDb.Persistence sits between the core abstractions (EntglDb.Core) and concrete implementations:
EntglDb.Core (interfaces)
|
v
EntglDb.Persistence (base implementations)
|
v
+------------------+------------------------+
| | |
BLite EntityFramework (Other Providers)
When To Use This Package
- As a Library User: You typically don't install this directly - it's included as a dependency when you install a concrete provider like
EntglDb.Persistence.BLiteorEntglDb.Persistence.EntityFramework - As a Provider Developer: Reference this package to build custom persistence providers by extending the base classes
Key Components
OplogStore
Base implementation for operation log storage with:
- Hash-chain verification
- Batch application
- Conflict resolution integration
- Change event notifications
VectorClockService
Thread-safe vector clock management:
- In-memory caching for fast lookups
- Atomic updates
- Causal ordering tracking
SnapshotStore
Snapshot lifecycle management:
- Creation and compression
- Restoration logic
- Metadata tracking
Creating a Custom Provider
To build your own persistence provider:
public class MyCustomOplogStore : OplogStore
{
public MyCustomOplogStore(
IDocumentStore documentStore,
IConflictResolver conflictResolver,
ISnapshotMetadataStore? snapshotMetadataStore,
IVectorClockService vectorClock)
: base(documentStore, conflictResolver, snapshotMetadataStore, vectorClock)
{
}
protected override async Task<List<OplogEntry>> GetNodeEntriesAsync(
string nodeId, CancellationToken cancellationToken)
{
// Implement storage-specific logic
}
// Implement other abstract methods...
}
Related Packages
- EntglDb.Core - Core abstractions and interfaces
- EntglDb.Persistence.BLite - BLite embedded provider
- EntglDb.Persistence.EntityFramework - EF Core provider
- EntglDb.Network - P2P networking layer
Documentation
Installation
# Install a concrete provider (includes this package automatically)
dotnet add package EntglDb.Persistence.BLite
# or
dotnet add package EntglDb.Persistence.EntityFramework
License
MIT - see LICENSE
| 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-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 was computed. 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 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
- EntglDb.Core (>= 1.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
-
net6.0
- EntglDb.Core (>= 1.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
-
net8.0
- EntglDb.Core (>= 1.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on EntglDb.Persistence:
| Package | Downloads |
|---|---|
|
EntglDb.Persistence.EntityFramework
Entity Framework Core persistence provider for EntglDb. Generic implementation supporting any EF Core database provider (SQL Server, PostgreSQL, MySQL, SQLite, etc). |
|
|
EntglDb.Persistence.BLite
BLite persistence provider for EntglDb. High-performance embedded document database for .NET 10. |
GitHub repositories
This package is not used by any popular GitHub repositories.