SharpCoreDB 1.1.1
See the version list below for details.
dotnet add package SharpCoreDB --version 1.1.1
NuGet\Install-Package SharpCoreDB -Version 1.1.1
<PackageReference Include="SharpCoreDB" Version="1.1.1" />
<PackageVersion Include="SharpCoreDB" Version="1.1.1" />
<PackageReference Include="SharpCoreDB" />
paket add SharpCoreDB --version 1.1.1
#r "nuget: SharpCoreDB, 1.1.1"
#:package SharpCoreDB@1.1.1
#addin nuget:?package=SharpCoreDB&version=1.1.1
#tool nuget:?package=SharpCoreDB&version=1.1.1
SharpCoreDB
High-Performance Embedded Database for .NET 10
๐ 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:
- GitHub: https://github.com/MPCoreDeveloper/SharpCoreDB
- User Manual: https://github.com/MPCoreDeveloper/SharpCoreDB/blob/master/docs/USER_MANUAL.md
- API Reference: https://github.com/MPCoreDeveloper/SharpCoreDB/tree/master/docs
๐ก Support
- GitHub Issues: https://github.com/MPCoreDeveloper/SharpCoreDB/issues
- Discussions: https://github.com/MPCoreDeveloper/SharpCoreDB/discussions
- Sponsor: https://github.com/sponsors/mpcoredeveloper
๐ License
SharpCoreDB is licensed under the MIT License. See LICENSE for details.
Copyright ยฉ 2026 MPCoreDeveloper
| 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
- Microsoft.Extensions.DependencyInjection (>= 10.0.2)
- Microsoft.Extensions.Logging (>= 10.0.2)
- Microsoft.Extensions.ObjectPool (>= 10.0.2)
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.
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.