Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
6386cfa
docs(perf): spec-kit plan to close the SQLite UPDATE/DELETE gap
MPCoreDeveloper Nov 29, 2026
0a48f3d
docs(perf): record the concrete widening cascade the live attempt rev…
MPCoreDeveloper Nov 29, 2026
fb5de1b
perf(update): cut the contiguous fixed-width UPDATE patch allocation
MPCoreDeveloper Nov 29, 2026
1974f51
docs(perf): quiet-machine A/B for the UPDATE allocation fix (gap 1.4x…
MPCoreDeveloper Nov 29, 2026
cfb3a5a
docs(perf): rule out the deferred-span parse lever (allocation ~12%, …
MPCoreDeveloper Nov 29, 2026
e3cf1c1
docs(perf): prepared DML shape-cache spec (parse lever) + commit/writ…
MPCoreDeveloper Nov 29, 2026
59878a6
docs(perf): refute the internal shape-cache (cannot skip the per-stat…
MPCoreDeveloper Nov 29, 2026
2b2bea4
feat(dml): prepared-statement batch API + --pk-prepared arm (4.69x ra…
MPCoreDeveloper Nov 29, 2026
c5c1020
feat(provider): expose ExecuteBatchPrepared on the ADO.NET connection…
MPCoreDeveloper Nov 29, 2026
07dbd51
feat(dml): prepared DELETE + parity findings + 5.4 re-validation (pla…
MPCoreDeveloper Nov 29, 2026
3122f48
perf(crypto): parallel span decrypt + record seal for the at-rest bat…
MPCoreDeveloper Nov 30, 2026
eae7e40
feat(metadata): single-file IMetadataProvider parity + verify the AOT…
MPCoreDeveloper Nov 30, 2026
a68ab5c
feat(single-file): model composite keys, enforce PK uniqueness, honou…
MPCoreDeveloper Nov 30, 2026
7656f5d
fix(single-file): key the batch INSERT cache by table shape + correct…
MPCoreDeveloper Nov 30, 2026
81e80c8
test(quality): four suites for untested surfaces + six defect fixes; …
MPCoreDeveloper Nov 30, 2026
6ca594c
docs(verify): full-suite and gate verification of the branch - 4,968 …
MPCoreDeveloper Nov 30, 2026
cbbd4cf
docs(verify): record the clean gate confirmation run (8/8 ok, reprodu…
MPCoreDeveloper Nov 30, 2026
115b35a
release: 2.2.1 - version bump (28 packages) + README/NuGet/docs update
MPCoreDeveloper Nov 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Embedded + networked database engine for .NET with AES-256-GCM encryption, a gRP
package family spanning ADO.NET, EF Core, Dapper, linq2DB, YesSql, Sync, Analytics, VectorSearch,
Graph, EventSourcing, CQRS and Projections. C#/.NET, `LangVersion=preview`. Deep documentation lives
in `docs/` (start at `docs/INDEX.md`); the live performance mission is
`docs/performance/AUTONOMOUS_AGENT_BRIEF.md`. `master` is the `net11.0` / C# 15 preview line (2.2.0 — the
`docs/performance/AUTONOMOUS_AGENT_BRIEF.md`. `master` is the `net11.0` / C# 15 preview line (2.2.1 — the
.NET 11 GA line; see `docs/net11/PROMOTION_TO_MAIN.md`). The net10.0 / C# 14 stable line is parked on
`release/v2.0` for 2.0.x servicing and is built by `ci-net10.yml`.

Expand Down
4 changes: 3 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<SharpCoreDBVersion>2.2.0</SharpCoreDBVersion>
<SharpCoreDBVersion>2.2.1</SharpCoreDBVersion>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="SharpCoreDB" Version="$(SharpCoreDBVersion)" />
Expand All @@ -22,10 +22,12 @@
<PackageVersion Include="SharpCoreDB.Functional.Linq2DB" Version="$(SharpCoreDBVersion)" />
<PackageVersion Include="SharpCoreDB.Graph" Version="$(SharpCoreDBVersion)" />
<PackageVersion Include="SharpCoreDB.Graph.Advanced" Version="$(SharpCoreDBVersion)" />
<PackageVersion Include="SharpCoreDB.HybridSearch" Version="$(SharpCoreDBVersion)" />
<PackageVersion Include="SharpCoreDB.Identity" Version="$(SharpCoreDBVersion)" />
<PackageVersion Include="SharpCoreDB.Projections" Version="$(SharpCoreDBVersion)" />
<PackageVersion Include="SharpCoreDB.Provider.Sync" Version="$(SharpCoreDBVersion)" />
<PackageVersion Include="SharpCoreDB.Provider.YesSql" Version="$(SharpCoreDBVersion)" />
<PackageVersion Include="SharpCoreDB.Search" Version="$(SharpCoreDBVersion)" />
<PackageVersion Include="SharpCoreDB.Serilog.Sinks" Version="$(SharpCoreDBVersion)" />
<PackageVersion Include="SharpCoreDB.Server" Version="$(SharpCoreDBVersion)" />
<PackageVersion Include="SharpCoreDB.Server.Core" Version="$(SharpCoreDBVersion)" />
Expand Down
110 changes: 70 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,25 @@ Use it when you need:
- Fast embedded storage with **AES-256-GCM encryption** and ACID guarantees
- A secure network database via **gRPC (HTTP/2 + HTTP/3)**
- Built-in **vector search**, **advanced analytics**, and **GraphRAG/graph algorithms**
- A production-focused stack validated by **4,886 tests across all 17 test projects (0 failed,
6 skipped, measured 2026-11-28)**, including the write-path regression gate and the reopen
- A production-focused stack validated by **4,968 tests across all 17 test projects (0 failed,
1 skipped, measured 2026-11-30)**, including the write-path regression gate and the reopen
round-trip matrix

> **Current release: v2.2.0 (2026-11-28) — the .NET 11 / C# 15 line, on `master`.** A minor release with
> **Current release: v2.2.1 (2026-11-30) — the .NET 11 / C# 15 line, on `master`.** The quality patch on top
> of 2.2.0: four new test suites over public surfaces that had none (`PageBasedAdapter`,
> `CorruptionDetector`, `SimdHelper`, single-file key moves), and **six defects they found, all fixed
> red→green** — storage-provider **read-your-writes** (`WriteBlockAsync` queues, `ReadBlockAsync` read the
> file anyway, saw zeros and then "self-healed" the registry to match, losing the block),
> `PageBasedAdapter` persistence on dispose, single-file **UPDATE statement atomicity** on all four paths,
> **RTRIM** and collation-aware key uniqueness (`NOCASE` keys canonicalise), `HorizontalSum` on 4–7-element
> spans, and `DeserializeBatchDouble`'s null flags. Also includes the closing owner-decision work (D1=A
> composite keys, D2=A `COLLATE`), 24 SonarCloud S3358 refactors, and the two central package-version
> entries that were missing (`Search`, `HybridSearch`). Validated by **4,968 tests / 0 failed / 1 skipped
> across all 17 test projects**, line coverage **49.00 %** (engine assembly 56.92 %) and the write-path gate
> **PASSED** (8/8 capability metrics `ok`). Full notes:
> [`docs/CHANGELOG.md`](docs/CHANGELOG.md) › `[2.2.1]`.

> **Previous release — v2.2.0 (2026-11-28) — the .NET 11 / C# 15 line.** A minor release with
> the .NET 11 dependency majors (EF Core / ASP.NET Core / Extensions **11.0.0**, Aspire.Hosting **17.0.0**,
> MailKit/MimeKit **5.0.0**, Serilog **11.0.0**), **EF Core 11 compatibility** for the provider, and the
> engine hardening that landed since 2.1.4 (composite keys, atomic UPDATE, CHECK/CASE, PageBased durability,
Expand All @@ -37,7 +51,7 @@ Use it when you need:
> `UPDATE … SET` / `INSERT … VALUES` is now evaluated as an expression, as SQLite evaluates it — a bare word
> that names no column keeps the lenient literal reading, and an unquoted date in a `DATETIME` column stays a
> date. Validated by **4,886 tests / 0 failed / 6 skipped across all 17 test projects**, including a
> **511-case differential matrix** for #525. Full notes:
> **511-case differential matrix** for #525. Notes:
> [`docs/CHANGELOG.md`](docs/CHANGELOG.md) › `[2.2.0]`.

> **Previous release — v2.1.4 (2026-11-13) — the .NET 11 / C# 15 line, on `master`.** The quoted-identifier
Expand Down Expand Up @@ -113,17 +127,17 @@ Use it when you need:

## Requirements and the two release lines

| | **v2.2.0 — this line (`master`)** | **v2.0.0.3 — parked line (`release/v2.0`)** |
| | **v2.2.1 — this line (`master`)** | **v2.0.0.3 — parked line (`release/v2.0`)** |
|---|---|---|
| Target framework | `net11.0` only (every project under `src`) | `net10.0` |
| Language | C# 15 (`LangVersion=preview`, always on) | C# 14 |
| SDK | .NET 11 GA, pinned in `global.json` (`11.0.100`, `rollForward: latestPatch`) | .NET 10 (`10.0.x`) |
| Pipeline | `.github/workflows/ci.yml` | `.github/workflows/ci-net10.yml` |
| Packages | `2.2.0` — the 28 packable projects under `src` | `2.0.0.3` |
| Packages | `2.2.1` — the 28 packable projects under `src` | `2.0.0.3` |
| Status | current release, receives new work | servicing only |

- **Pick one line per solution.** The package references are line-specific: a `net10.0` project uses the
`2.0.0.x` packages, a `net11.0` project the `2.2.0` ones. Do not mix them in one solution.
`2.0.0.x` packages, a `net11.0` project the `2.2.x` ones. Do not mix them in one solution.
- **The .NET 11 SDK is required to build** — the `global.json` pin is deliberate and `dotnet test` is not
this repository's runner (Microsoft.Testing.Platform is; run the built test executable, or see
[`docs/INDEX.md`](docs/INDEX.md)).
Expand Down Expand Up @@ -155,7 +169,23 @@ Use it when you need:

---

## What's new in v2.2.0 (current release)
## What's new in v2.2.1 (current release)

**Tests first, then the defects they found.** The release adds four suites over surfaces that had no test at
all — `PageBasedAdapter` (the page engine's window onto a `.scdb` file), `CorruptionDetector`, `SimdHelper`
(every public SIMD primitive, both the vector path and the scalar tail) and the single-file key-move matrix
— and fixes what they exposed: (1) the storage provider's **read-your-writes** was broken (`WriteBlockAsync`
only queues; `ReadBlockAsync` read the file anyway, reported a checksum mismatch and then repaired the
registry *to the zeros*, so the block was lost) and the pending-writes flag could hide a write queued during
a flush (a durability gap on close); (2) `PageBasedAdapter.Dispose` never flushed the shared provider, so a
reopen lost every page; (3) a rejected single-file `UPDATE` left the row altered on all four paths — one
shared applier now validates the prospective key set before the first write; (4) `COLLATE RTRIM` was parsed
but compared ordinally, and key uniqueness always compared ordinal text (`NOCASE` keys accepted `'aa'` and
`'AA'`); (5) `SimdHelper.HorizontalSum` summed 8 instead of 15 on a five-element span; (6)
`DeserializeBatchDouble` ignored its null flags. Coverage moved **47.89 % → 49.00 %** (engine assembly
56.92 %). Full notes: [`docs/CHANGELOG.md`](docs/CHANGELOG.md) › `[2.2.1]`.

## What's new in v2.2.0

**Dependency majors, EF Core 11, and SQLite expression parity for `INSERT`/`UPDATE`.** Every Microsoft.*
package moves to **11.0.0** (EF Core, ASP.NET Core, Extensions), **Aspire.Hosting to 17.0.0**,
Expand Down Expand Up @@ -377,7 +407,7 @@ Headline changes, grouped by area. Everything below is in the shipped `2.1.0` pa
### 1) Embedded mode

```bash
dotnet add package SharpCoreDB --version 2.2.0
dotnet add package SharpCoreDB --version 2.2.1
```

```csharp
Expand Down Expand Up @@ -414,8 +444,8 @@ gRPC endpoint: `https://localhost:5001`
Install client/server packages:

```bash
dotnet add package SharpCoreDB.Server.Core --version 2.2.0
dotnet add package SharpCoreDB.Client --version 2.2.0
dotnet add package SharpCoreDB.Server.Core --version 2.2.1
dotnet add package SharpCoreDB.Client --version 2.2.1
```

> The server host is a standalone executable (`src/SharpCoreDB.Server`), distributed as the
Expand Down Expand Up @@ -446,50 +476,50 @@ dotnet add package SharpCoreDB.Client --version 2.2.0

## Available NuGet packages

### v2.2.0 — current release (`master`, net11.0 / C# 15 preview)
### v2.2.1 — current release (`master`, net11.0 / C# 15 preview)

```bash
# Core
dotnet add package SharpCoreDB --version 2.2.0
dotnet add package SharpCoreDB --version 2.2.1

# Server/client
dotnet add package SharpCoreDB.Server.Core --version 2.2.0
dotnet add package SharpCoreDB.Server.Protocol --version 2.2.0
dotnet add package SharpCoreDB.Client --version 2.2.0
dotnet add package SharpCoreDB.Client.Protocol --version 2.2.0
dotnet add package SharpCoreDB.Data.Provider --version 2.2.0
dotnet add package SharpCoreDB.Server.Core --version 2.2.1
dotnet add package SharpCoreDB.Server.Protocol --version 2.2.1
dotnet add package SharpCoreDB.Client --version 2.2.1
dotnet add package SharpCoreDB.Client.Protocol --version 2.2.1
dotnet add package SharpCoreDB.Data.Provider --version 2.2.1

# Engines and extensions
dotnet add package SharpCoreDB.Analytics --version 2.2.0
dotnet add package SharpCoreDB.VectorSearch --version 2.2.0
dotnet add package SharpCoreDB.Search --version 2.2.0
dotnet add package SharpCoreDB.HybridSearch --version 2.2.0
dotnet add package SharpCoreDB.Graph --version 2.2.0
dotnet add package SharpCoreDB.Graph.Advanced --version 2.2.0
dotnet add package SharpCoreDB.Distributed --version 2.2.0
dotnet add package SharpCoreDB.Provider.Sync --version 2.2.0
dotnet add package SharpCoreDB.Provider.YesSql --version 2.2.0
dotnet add package SharpCoreDB.EntityFrameworkCore --version 2.2.0
dotnet add package SharpCoreDB.Extensions --version 2.2.0
dotnet add package SharpCoreDB.Identity --version 2.2.0
dotnet add package SharpCoreDB.Serilog.Sinks --version 2.2.0
dotnet add package SharpCoreDB.Analytics --version 2.2.1
dotnet add package SharpCoreDB.VectorSearch --version 2.2.1
dotnet add package SharpCoreDB.Search --version 2.2.1
dotnet add package SharpCoreDB.HybridSearch --version 2.2.1
dotnet add package SharpCoreDB.Graph --version 2.2.1
dotnet add package SharpCoreDB.Graph.Advanced --version 2.2.1
dotnet add package SharpCoreDB.Distributed --version 2.2.1
dotnet add package SharpCoreDB.Provider.Sync --version 2.2.1
dotnet add package SharpCoreDB.Provider.YesSql --version 2.2.1
dotnet add package SharpCoreDB.EntityFrameworkCore --version 2.2.1
dotnet add package SharpCoreDB.Extensions --version 2.2.1
dotnet add package SharpCoreDB.Identity --version 2.2.1
dotnet add package SharpCoreDB.Serilog.Sinks --version 2.2.1

# Optional architecture packages
dotnet add package SharpCoreDB.EventSourcing --version 2.2.0
dotnet add package SharpCoreDB.Projections --version 2.2.0
dotnet add package SharpCoreDB.CQRS --version 2.2.0
dotnet add package SharpCoreDB.EventSourcing --version 2.2.1
dotnet add package SharpCoreDB.Projections --version 2.2.1
dotnet add package SharpCoreDB.CQRS --version 2.2.1

# Optional functional adapters
dotnet add package SharpCoreDB.Functional --version 2.2.0
dotnet add package SharpCoreDB.Functional.Dapper --version 2.2.0
dotnet add package SharpCoreDB.Functional.EntityFrameworkCore --version 2.2.0
dotnet add package SharpCoreDB.Functional.Linq2DB --version 2.2.0
dotnet add package SharpCoreDB.Functional --version 2.2.1
dotnet add package SharpCoreDB.Functional.Dapper --version 2.2.1
dotnet add package SharpCoreDB.Functional.EntityFrameworkCore --version 2.2.1
dotnet add package SharpCoreDB.Functional.Linq2DB --version 2.2.1

# Hosting and tooling
dotnet add package SharpCoreDB.Aspire.Hosting --version 2.2.0
dotnet add package SharpCoreDB.Aspire.Hosting --version 2.2.1
```

> The 28 commands above are the complete packable set of this line. **`2.2.0` is a stable release**, so
> The 28 commands above are the complete packable set of this line. **`2.2.1` is a stable release**, so
> NuGet selects it by default for a `net11.0` project; a `net10.0` project resolves to the `2.0.0.3` line
> instead. Pin the version explicitly (as above) when you want to be certain, and tick *Include
> prerelease* only if you are deliberately testing an RC build.
Expand Down
Loading
Loading