SharpCoreDB.Data.Provider 1.0.6

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

SharpCoreDB ADO.NET Data Provider

NuGet Version NuGet Downloads License: MIT .NET GitHub Stars GitHub Issues

Complete ADO.NET Data Provider for SharpCoreDB - enables seamless integration and standard ADO.NET usage with the high-performance SharpCoreDB embedded database.

Features

  • Full ADO.NET Compliance: Implements DbConnection, DbCommand, DbDataReader, and more
  • High Performance: Leverages SharpCoreDB's SIMD-accelerated analytics and B-tree indexes
  • Enterprise Security: AES-256-GCM encryption with zero overhead
  • Cross-Platform: Supports Windows, Linux, and macOS
  • Easy Integration: Drop-in replacement for other ADO.NET providers

Installation

Install the package via NuGet:

dotnet add package SharpCoreDB.Data.Provider

Usage

Basic Connection and Query

using System.Data.Common;
using SharpCoreDB.Data.Provider;

// Create connection
var connectionString = "Data Source=./mydb.db;Password=StrongPassword!";
using var connection = new SharpCoreDBConnection(connectionString);
connection.Open();

// Create command
using var command = connection.CreateCommand();
command.CommandText = "CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT, age INTEGER)";

// Execute DDL
command.ExecuteNonQuery();

// Insert data
command.CommandText = "INSERT INTO users VALUES (1, 'Alice', 30)";
command.ExecuteNonQuery();

// Query data
command.CommandText = "SELECT * FROM users";
using var reader = command.ExecuteReader();
while (reader.Read())
{
    Console.WriteLine($"ID: {reader.GetInt32(0)}, Name: {reader.GetString(1)}, Age: {reader.GetInt32(2)}");
}

Using with DbProviderFactory

using System.Data.Common;

// Register the provider
DbProviderFactories.RegisterFactory("SharpCoreDB.Data.Provider", SharpCoreDBProviderFactory.Instance);

// Use factory
var factory = DbProviderFactories.GetFactory("SharpCoreDB.Data.Provider");
using var connection = factory.CreateConnection();
connection.ConnectionString = "Data Source=./mydb.db;Password=StrongPassword!";
connection.Open();

// Rest of the code is standard ADO.NET

Advanced Features

Leverage SharpCoreDB's advanced features through the provider:

// B-tree indexes for fast range queries
command.CommandText = "CREATE INDEX idx_age ON users(age) USING BTREE";
command.ExecuteNonQuery();

// SIMD-accelerated analytics
command.CommandText = "SELECT AVG(age), SUM(age) FROM users";
using var reader = command.ExecuteReader();
if (reader.Read())
{
    var avgAge = reader.GetDouble(0);
    var sumAge = reader.GetDouble(1);
}

Performance

This provider inherits SharpCoreDB's exceptional performance:

  • 345x faster analytics than LiteDB with SIMD vectorization
  • 11.5x faster than SQLite for aggregations
  • AES-256-GCM encryption with 0% overhead
  • B-tree indexes for O(log n) range queries

For detailed benchmarks, see the main SharpCoreDB repository.

Requirements

  • .NET 10.0 or later
  • C# 14

License

MIT License - see LICENSE for details.

Contributing

Contributions are welcome! Please see the contributing guidelines.

Support

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

Showing the top 1 NuGet packages that depend on SharpCoreDB.Data.Provider:

Package Downloads
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 99 2/21/2026
1.3.0 92 2/14/2026
1.1.1 94 2/8/2026
1.1.0 96 2/8/2026
1.0.6 98 2/1/2026
1.0.5 93 1/11/2026
1.0.2 95 1/3/2026
1.0.1 94 1/3/2026

v1.0.6: Updated to support SharpCoreDB 1.0.6 with full subquery and JOIN support.