Incursa.Platform.Sqlite 6.0.10

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

Incursa.Platform.Sqlite

Incursa.Platform.Sqlite provides the Incursa Platform contracts over one local SQLite database file. It is designed for an independent agent or application running on one host. It is not a shared-file or multi-host coordination provider.

Install

dotnet add package Incursa.Platform.Sqlite

Register

using Incursa.Platform;

var path = Path.GetFullPath("data/platform.sqlite");
Directory.CreateDirectory(Path.GetDirectoryName(path)!);

services.AddSqlitePlatform(path, options =>
{
    options.EnableSchemaDeployment = true;
    options.EnableScheduling = true;
    options.EnableInbox = true;
    options.EnableOutbox = true;
    options.EnableLeases = true;
    options.EnableIdempotency = true;
    options.EnableFanout = true;
    options.EnableOperations = true;
    options.EnableAudit = true;
    options.EnableHealthChecks = true;
    options.EnableWorkers = true;
    options.Workers.PollingInterval = TimeSpan.FromSeconds(5);
    options.Workers.BatchSize = 50;
    options.Workers.LeaseDuration = TimeSpan.FromSeconds(30);
    options.Workers.RetryDelay = TimeSpan.FromSeconds(5);
    options.Workers.MaxAttempts = 5;
});

The provider registers the enabled provider-neutral Platform adapters together with the connection factory, bounded busy/locked retry policy, migration runner, integrity checker, and backup service. Feature-specific settings are available through SqlitePlatformOptions.Inbox, .Leases, .Idempotency, .Operations, and .Audit. Keep one registration for a database file in a process.

Register provider-neutral IInboxHandler and IOutboxHandler implementations by topic to enable the built-in bounded dispatch workers. Successful handlers are acknowledged; transient failures are rescheduled and permanent or exhausted failures are marked failed. Delivery is durable at-least-once, so handlers and external effects must be idempotent.

Storage guarantees

  • Every connection enables WAL mode, synchronous=FULL, foreign keys, and the configured busy timeout.
  • Busy/locked operations use a bounded retry policy; non-transient errors are not retried.
  • Scheduler, inbox, outbox, lease, idempotency, fanout, operation, and audit writes use short SQLite transactions and owner/fencing predicates where applicable.
  • Migrations run in a serialized transaction and record SHA-256 SQL hashes to detect drift.
  • Integrity checks run PRAGMA integrity_check and PRAGMA foreign_key_check.
  • Online backup checkpoints the WAL, validates source and target, and atomically publishes a temporary sibling file.
  • Restore validates a backup and publishes only to an inactive destination; the configured live database and SQLite sidecars are protected.
  • The Incursa.Platform.Sqlite System.Diagnostics.Metrics meter emits local counters for connections, retries, migrations, integrity checks, worker passes, operations, and audit writes; applications can export them with OpenTelemetry.

Boundary

Place the database on local storage. Fully qualified local paths are required; relative, URI, drive-relative, UNC, and network paths are rejected. Several processes on one host can share the local file within SQLite's serialized-writer model. Do not mount the file on SMB/NFS/CIFS or use it for independent machines. Use Incursa.Platform.Postgres or Incursa.Platform.SqlServer for multi-host leases, schedulers, inbox/outbox dispatch, discovery, control-plane coordination, or central metrics rollups.

Exactly-once coordination primitives do not make external HTTP calls, emails, payments, or other effects exactly once. Design handlers to tolerate redelivery and use an idempotency key at the receiving boundary.

Documentation

See the SQLite provider guide for the capability matrix, options, migration and drift rules, backup/restore cutover, concurrency guidance, recovery procedures, and .NET Worker Service and ASP.NET Core examples.

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
6.0.10 160 10/20/2026