Sharc 1.2.87

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

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> and stackalloc — 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/UUID and FIX128/DECIMAL128 (decimal, 28-29 significant digits).
  • Strict Typed Accessors: GetGuid() only for GUID/UUID; GetDecimal() only for FIX128/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.

Full Documentation & Benchmarks | Live Arena

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 (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