NativeSQLite 1.0.0

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

NativeSQLite

A minimal SQLite wrapper for .NET — clean output directory, no dependency chains.

Ships e_sqlite3 native binaries for win-x64 and win-x86. On .NET 8 the correct architecture is selected automatically by the runtime (RID resolution); on .NET Framework the matching dll is copied to your output directory at build time based on your project platform settings.

Why

  • Zero dependencies — no other NuGet packages required
  • x86 + x64 in one package: legacy 32-bit .NET Framework apps and modern 64-bit .NET 8 apps both work
  • No Linux/macOS payloads, no architecture clutter beyond what your build actually needs
  • Targets net8.0 and .NET Framework 4.6.1

Quick start

using PCHMI;

using var db = new NativeSQLite("app.db");

db.ExecuteNonQuery("CREATE TABLE IF NOT EXISTS logs(id INTEGER PRIMARY KEY, msg TEXT);");
db.ExecuteNonQuery("INSERT INTO logs(msg) VALUES(?);", "hello sqlite");

foreach (var row in db.Query("SELECT id, msg FROM logs;"))
    Console.WriteLine($"{row["id"]}: {row["msg"]}");

Features: parameterized queries, write batching with automatic commit throttling, WAL mode, busy-timeout retry on database is locked, periodic WAL checkpointing.

Platform notes

Project setting Native dll used
net8.0+ (any) Runtime picks runtimes/win-x64 or win-x86 automatically
.NET Framework, x64 / AnyCPU (Prefer 32-bit off) e_sqlite3.dll (win-x64) copied to output
.NET Framework, x86 / AnyCPU + Prefer 32-bit on e_sqlite3.dll (win-x86) copied to output

License

Wrapper code © GreatBear, MIT License. Contains SQLite binaries — SQLite is in the public domain (https://sqlite.org).

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 is compatible.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.1

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on NativeSQLite:

Package Downloads
PCHMI

PCHMI工控组态控件,支持Modbus‑TCP、SIEMENS S7、KEYENCE HOSTLINK、PANASONIC MEWTOCOL、MITSUBISHI MC、OPC Ua、MQTT、BECKHOFF ADS、CODESYS V3、AB LogixE/IP、OMRON FINS E/IP等多种PLC通信协议,快速搭建上位机HMI画面。实时数据采集JSON、EXCEL、SQLITE、MYSQL、POSTGRESQL、SQLSERVER等统一数据库操作接口

PCHMI.Core

PCHMI工控组态控件,支持Modbus‑TCP、SIEMENS S7、KEYENCE HOSTLINK、PANASONIC MEWTOCOL、MITSUBISHI MC、OPC Ua、MQTT、BECKHOFF ADS、CODESYS V3、AB LogixE/IP、OMRON FINS E/IP等多种PLC通信协议,快速搭建上位机HMI画面。实时数据采集JSON、EXCEL、SQLITE、MYSQL、POSTGRESQL、SQLSERVER等统一数据库操作接口

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 170 10/22/2026
1.0.1 122 10/21/2026
1.0.0 85 10/21/2026