Sharc 1.2.87
dotnet add package Sharc --version 1.2.87
NuGet\Install-Package Sharc -Version 1.2.87
<PackageReference Include="Sharc" Version="1.2.87" />
<PackageVersion Include="Sharc" Version="1.2.87" />
<PackageReference Include="Sharc" />
paket add Sharc --version 1.2.87
#r "nuget: Sharc, 1.2.87"
#:package Sharc@1.2.87
#addin nuget:?package=Sharc&version=1.2.87
#tool nuget:?package=Sharc&version=1.2.87
Sharc
Read and write SQLite files 2-66x faster than Microsoft.Data.Sqlite, in pure C#, with zero native dependencies.
Sharc is a high-performance, zero-allocation SQLite format reader and writer with a built-in SQL query pipeline, designed for AI context space engineering, edge computing, and high-throughput data access.
Key Features
- 61x Faster Seeks: B-tree point lookups in 392 ns vs SQLite's 24,011 ns.
- 9.2x Faster Scans: Full table reads with lazy column decode (568 B allocation for 2,500 rows).
- SQL Pipeline: SELECT, WHERE, ORDER BY, GROUP BY, UNION, INTERSECT, EXCEPT, Cotes.
- Zero Allocation: Hot paths use
ReadOnlySpan<byte>andstackalloc— zero GC pressure. - Pure C#: No native DLLs. Runs anywhere .NET runs (Windows, Linux, macOS, WASM, IoT).
- ~250 KB Footprint: 40x smaller than the standard SQLite bundle.
- Cryptographic Trust: ECDSA agent attestation and tamper-evident audit ledgers (via
Sharc.Graph). - Encryption: AES-256-GCM + Argon2id support (via
Sharc.Crypto). - Native 128-bit Types:
GUID/UUIDandFIX128/DECIMAL128(decimal, 28-29 significant digits). - Strict Typed Accessors:
GetGuid()only forGUID/UUID;GetDecimal()only forFIX128/DECIMAL*.
Quick Start
using Sharc;
// Open a database
using var db = SharcDatabase.Open("mydata.db");
// Scan a table
using var reader = db.CreateReader("users");
while (reader.Read())
Console.WriteLine($"{reader.GetInt64(0)}: {reader.GetString(1)}");
// Point lookup in < 1 microsecond
if (reader.Seek(42))
Console.WriteLine($"Found: {reader.GetString(1)}");
// SQL queries
using var results = db.Query(
"SELECT dept, COUNT(*) FROM users WHERE age > 25 GROUP BY dept ORDER BY dept");
while (results.Read())
Console.WriteLine($"{results.GetString(0)}: {results.GetInt64(1)}");
// Typed 128-bit values
using var typed = db.CreateReader("accounts");
while (typed.Read())
{
Guid accountId = typed.GetGuid(1); // GUID/UUID column
decimal balance = typed.GetDecimal(2); // FIX128/DECIMAL* column
}
When to Use Sharc
Sharc is optimized for point lookups, structured AI context, and embedded scenarios. It is a complement to SQLite, not a full replacement. Use Sharc when performance, allocation, or zero-dependency deployment is critical.
| Product | Versions 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. |
-
net10.0
- Sharc.Core (>= 1.2.87)
- Sharc.Crypto (>= 1.2.87)
- Sharc.Query (>= 1.2.87)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Sharc:
| Package | Downloads |
|---|---|
|
Sharc.Graph
Graph traversal and AI trust layer for Sharc: 31x faster than SQLite CTEs. Zero-alloc edge cursors, two-phase BFS, ECDSA agent attestation, hash-chain audit ledger. |
|
|
Sharc.Vector
SIMD-accelerated vector similarity search for Sharc. Zero-copy BLOB decode, cosine/euclidean/dot product distance via TensorPrimitives, top-K nearest neighbor with metadata pre-filtering. |
|
|
Sharc.Arc
Cross-arc reference resolution, validation, and diff for Sharc distributed arcs. Never-throw resolution, multi-layer security validation, streaming data diff. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2.87 | 56 | 3/6/2026 |
| 1.2.82 | 66 | 3/5/2026 |
| 1.2.80 | 111 | 2/27/2026 |
| 1.2.77 | 114 | 2/26/2026 |
| 1.2.65 | 115 | 2/26/2026 |
| 1.2.59 | 108 | 2/25/2026 |
| 1.1.2-beta | 87 | 2/24/2026 |
| 1.0.0.1-alpha | 86 | 2/18/2026 |
| 1.0.0-alpha.1 | 46 | 2/16/2026 |