SharpCoreDB 1.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package SharpCoreDB --version 1.1.1
                    
NuGet\Install-Package SharpCoreDB -Version 1.1.1
                    
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="SharpCoreDB" Version="1.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SharpCoreDB" Version="1.1.1" />
                    
Directory.Packages.props
<PackageReference Include="SharpCoreDB" />
                    
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 SharpCoreDB --version 1.1.1
                    
#r "nuget: SharpCoreDB, 1.1.1"
                    
#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 SharpCoreDB@1.1.1
                    
#: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=SharpCoreDB&version=1.1.1
                    
Install as a Cake Addin
#tool nuget:?package=SharpCoreDB&version=1.1.1
                    
Install as a Cake Tool

SharpCoreDB

High-Performance Embedded Database for .NET 10

License: MIT .NET NuGet Build Tests


๐Ÿ“Œ Current Status (February 2026)

โœ… Version 1.1.1 Released - Localization Fix + API Cleanup

Latest Release: v1.1.1 (February 2026)

๐Ÿ› Bug Fixes
  • Critical: Fixed localization bug affecting date/time formatting in non-English cultures
  • Compatibility: Resolved culture-dependent parsing issues (decimal separators, date formats)
  • Portability: Database files now fully portable across different regional settings
๐Ÿ”„ API Improvements
  • Deprecated Methods: Added [Obsolete] attributes to legacy sync methods
  • Migration Path: Clear upgrade guidance to async patterns (see Quickstart below)
  • Breaking Changes: None - full backward compatibility maintained
๐Ÿ“ฆ Quick Install
dotnet add package SharpCoreDB --version 1.1.1

โœ… All Phases Complete โ€” Phases 1-8 + DDL Extensions

Area Status
Phases 1-7 (Core โ†’ Query Optimization) โœ… Complete
Phase 8 (Time-Series: compression, buckets, downsampling) โœ… Complete
Phase 1.3 (Stored Procedures, Views) โœ… Complete
Phase 1.4 (Triggers) โœ… Complete
Build โœ… 0 errors
Tests โœ… 772 passing, 0 failures
Production LOC ~77,700

Full documentation: https://github.com/MPCoreDeveloper/SharpCoreDB


A high-performance, encrypted, embedded database engine for .NET 10 with B-tree indexes, SIMD-accelerated analytics, and unlimited row storage. Pure .NET implementation with enterprise-grade encryption and world-class analytics performance. Beats SQLite AND LiteDB on INSERT! ๐Ÿ†

  • License: MIT
  • Platform: .NET 10, C# 14
  • Status: โœ… Production Ready โ€” All Phases (1-8) + DDL Extensions Complete
  • Encryption: AES-256-GCM at rest (0% overhead, sometimes faster! โœ…)
  • Analytics: 28,660x faster than LiteDB with SIMD vectorization โœ…
  • Analytics: 682x faster than SQLite with SIMD vectorization โœ…
  • INSERT: 43% faster than SQLite, 44% faster than LiteDB! โœ…
  • SELECT: 2.3x faster than LiteDB for full table scans โœ…
  • UPDATE: 5.4x faster Single-File mode with batch coalescing โœ…
  • B-tree Indexes: O(log n + k) range scans, ORDER BY, BETWEEN support โœ…

๐Ÿš€ Quickstart

Install the latest version:

# Install SharpCoreDB v1.1.1
dotnet add package SharpCoreDB --version 1.1.1

# Or use wildcard for latest
dotnet add package SharpCoreDB

Use (Async API - Recommended):

using Microsoft.Extensions.DependencyInjection;
using SharpCoreDB;

var services = new ServiceCollection();
services.AddSharpCoreDB();
var provider = services.BuildServiceProvider();
var factory = provider.GetRequiredService<DatabaseFactory>();

using var db = factory.Create("./app_db", "StrongPassword!");

// Create table with B-tree index
await db.ExecuteSQLAsync("CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT, age INTEGER)");
await db.ExecuteSQLAsync("CREATE INDEX idx_age ON users(age) USING BTREE");

// Fast inserts with async API (recommended)
await db.ExecuteSQLAsync("INSERT INTO users VALUES (1, 'Alice', 30)");

// Fast queries with async batch API
var rows = await db.ExecuteQueryAsync("SELECT * FROM users WHERE age > 25");

// Support for large data (>256KB)
var largeData = new byte[10_000_000]; // 10MB
await db.ExecuteSQLAsync("INSERT INTO files VALUES (1, @data)");

โš ๏ธ API Migration Notice (v1.1.1): Legacy synchronous methods (ExecuteSQL, ExecuteQuery, Flush, ForceSave) are marked as [Obsolete]. Please migrate to async methods (ExecuteSQLAsync, ExecuteQueryAsync, FlushAsync, ForceSaveAsync) for better performance, cancellation support, and culture-independent behavior.


โญ Key Features

โšก Performance Excellence - Beats SQLite AND LiteDB! ๐Ÿ†

  • SIMD Analytics: 28,660x faster aggregations than LiteDB (1.08ยตs vs 30.9ms)
  • SIMD Analytics: 682x faster than SQLite (1.08ยตs vs 737ยตs)
  • INSERT Operations: 43% faster than SQLite (3.68ms vs 5.70ms) โœ…
  • INSERT Operations: 44% faster than LiteDB (3.68ms vs 6.51ms) โœ…
  • SELECT Queries: 2.3x faster than LiteDB for full table scans
  • UPDATE Operations: 5.4x faster Single-File mode (60ms vs 325ms) โœ…
  • UPDATE Memory: 280x less allocations (1.9MB vs 540MB) โœ…
  • AVX-512/AVX2/SSE2: Hardware-accelerated analytics with SIMD vectorization
  • NativeAOT-Ready: Zero reflection, zero dynamic dispatch, aggressive inlining
  • Memory Efficient: 52x less memory than LiteDB for SELECT operations

๐Ÿ”’ Enterprise Security

  • Native AES-256-GCM: Hardware-accelerated encryption with 0% overhead (or faster!)
  • At-Rest Encryption: All data encrypted on disk
  • Zero Configuration: Automatic key management
  • GDPR/HIPAA Compliant: Enterprise-grade security

๐Ÿ—„๏ธ Row Overflow Storage

  • โœ… SCDB Phase 6 Complete: No arbitrary size limits (256TB NTFS)
  • 3-tier auto-selection: Inline (4KB) / Overflow (256KB) / FileStream (โˆž)
  • Orphan detection and cleanup tooling
  • Production quality - SHA-256 checksums, atomic operations โœ…

๐Ÿ—๏ธ Modern Architecture

  • Pure .NET: No P/Invoke dependencies, fully managed code
  • Multiple Storage Engines: PageBased (OLTP), Columnar (Analytics), AppendOnly (Logging), SCDB (Block-based)
  • Dual Index Types: Hash indexes (O(1) point lookups), B-tree indexes (O(log n) range queries)
  • Crash Recovery: REDO-only recovery with WAL
  • Async/Await: First-class async support throughout
  • DI Integration: Native Dependency Injection

๐Ÿ—ƒ๏ธ SQL Support

  • DDL: CREATE TABLE, DROP TABLE, ALTER TABLE, CREATE INDEX, DROP INDEX
  • DDL: CREATE/DROP PROCEDURE, CREATE/DROP VIEW, CREATE/DROP TRIGGER
  • DML: INSERT, SELECT, UPDATE, DELETE, INSERT BATCH, EXEC
  • Queries: WHERE, ORDER BY, LIMIT, OFFSET, BETWEEN
  • Aggregates: COUNT, SUM, AVG, MIN, MAX, GROUP BY, HAVING
  • JOINs: โœ… INNER, LEFT, RIGHT, FULL OUTER, CROSS
  • Subqueries: โœ… WHERE, FROM, SELECT, IN, EXISTS, Correlated
  • Stored Procedures: โœ… CREATE PROCEDURE, EXEC with IN/OUT/INOUT parameters
  • Views: โœ… CREATE VIEW, CREATE MATERIALIZED VIEW
  • Triggers: โœ… BEFORE/AFTER INSERT/UPDATE/DELETE with NEW/OLD binding
  • Advanced: Complex expressions, multi-table queries, query plan caching

๐Ÿงญ RDBMS Feature Status

Feature Status Details
Stored Procedures โœ… Complete CREATE/DROP PROCEDURE, EXEC with IN/OUT/INOUT parameters
Views โœ… Complete CREATE VIEW, CREATE MATERIALIZED VIEW, DROP VIEW
Triggers โœ… Complete BEFORE/AFTER INSERT/UPDATE/DELETE, NEW/OLD binding
Time-Series โœ… Complete Gorilla, Delta-of-Delta, XOR codecs, Buckets & Downsampling
B-tree Indexes โœ… Complete Range queries, ORDER BY, BETWEEN, composite indexes
JOINs โœ… Complete INNER, LEFT, RIGHT, FULL OUTER, CROSS joins
Subqueries โœ… Complete Correlated, IN, EXISTS, scalar subqueries
Aggregates โœ… Complete COUNT, SUM, AVG, MIN, MAX, GROUP BY, HAVING

โฑ๏ธ Time-Series (Phase 8) Features

SharpCoreDB includes production-grade time-series support with industry-standard compression:

Compression Codecs

  • Gorilla Codec: XOR-based floating-point compression (~80% space savings)
  • Delta-of-Delta Codec: Integer timestamp compression with second-order deltas
  • XOR Float Codec: Specialized IEEE 754 compression for measurements

Capabilities

  • Automatic Bucketing: Time-range partitioning for fast queries
  • Downsampling: Aggregate high-frequency data into lower-resolution series
  • Retention Policies: Automatic archival and cleanup of old data
  • Time-Range Indexes: BRIN-style indexes for fast temporal lookups
  • Bloom Filters: Efficient time-range filtering

Example Usage

// Create time-series table
await db.ExecuteSQLAsync(@"
    CREATE TABLE metrics (
        timestamp BIGINT,
        value REAL,
        tag TEXT,
        PRIMARY KEY (timestamp, tag)
    ) WITH TIMESERIES
");

// Insert compressed time-series data
await db.ExecuteSQLAsync("INSERT INTO metrics VALUES (@ts, @val, @tag)");

// Query with time-range filtering (automatic codec decompression)
var rows = await db.ExecuteQueryAsync(
    "SELECT * FROM metrics WHERE timestamp BETWEEN @start AND @end"
);

// Downsample to 1-minute buckets
var downsampled = await db.ExecuteQueryAsync(@"
    SELECT 
        bucket_timestamp(timestamp, 60000) as bucket,
        AVG(value) as avg_value,
        MAX(value) as max_value
    FROM metrics
    GROUP BY bucket
");

๐Ÿ“– Documentation

For comprehensive documentation, visit:

๐Ÿ’ก Support

๐Ÿ“œ License

SharpCoreDB is licensed under the MIT License. See LICENSE for details.


Copyright ยฉ 2026 MPCoreDeveloper

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

Showing the top 5 NuGet packages that depend on SharpCoreDB:

Package Downloads
SharpCoreDB.Serilog.Sinks

A Serilog sink for SharpCoreDB - a lightweight, encrypted, file-based database. Features efficient batch logging with AES-256-GCM encryption, AppendOnly storage engine for maximum write speed, and full async support. Compatible with SharpCoreDB 1.1.0+.

SharpCoreDB.EntityFrameworkCore

Entity Framework Core provider for SharpCoreDB encrypted database engine. Built for .NET 10 with C# 14. Supports Windows, Linux, macOS, Android, iOS, and IoT/embedded devices with platform-specific optimizations. Compatible with SharpCoreDB 1.3.0.

SharpCoreDB.Extensions

Extensions for SharpCoreDB including Dapper integration and ASP.NET Core health checks. Built for .NET 10 with C# 14. Supports Windows, Linux, macOS, Android, iOS, and IoT/embedded devices with platform-specific optimizations.

SharpCoreDB.Data.Provider

Data provider layer for SharpCoreDB on .NET 10.

SharpCoreDB.Provider.YesSql

YesSql provider for SharpCoreDB encrypted database engine. Built for .NET 10 with C# 14. Supports Windows, Linux, macOS, Android, iOS, and IoT/embedded devices with platform-specific optimizations.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.5 94 2/21/2026
1.3.0 159 2/14/2026
1.1.1 144 2/8/2026
1.1.0 134 2/8/2026
1.0.6 234 2/1/2026
1.0.5 229 1/11/2026
1.0.4 145 1/3/2026
1.0.0 171 12/26/2025

v1.1.1 (2026-02: localization bug fixed, Major RDBMS improvements - Enhanced query execution, optimized join operations, improved subquery handling, better index utilization, and performance tuning across the core engine. Includes refined transaction handling, improved WAL group commits, and optimized single-file and columnar storage paths.
     New features: Advanced query optimizer, improved index strategies, columnar storage enhancements.
     Fixes: Edge cases in join execution, transaction isolation improvements, memory efficiency gains.
     Breaking changes: None - full backward compatibility maintained.