Naravel.Database.Sqlite 0.2.0

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

Naravel.Database.Sqlite

NuGet Downloads .NET 10 License: MIT

SQLite driver for Naravel.Database, built on Microsoft.Data.Sqlite.

Fact Detail
Install dotnet add package Naravel.Database.Sqlite
Targets .NET 10
Needs Naravel.Database, which NuGet installs with it
Driver sqlite

What you get

  • No server to run. SQLite runs inside your process, from a file or in memory.
  • In-memory databases that last. :memory: becomes a uniquely named shared-cache database that stays open until the driver is disposed, so every call sees the same data and two connection names never share one.
  • The whole query builder. Fluent queries, raw SQL and transactions from Naravel.Database, written in SQLite's dialect.
  • Pooled connections. Each call opens a pooled Microsoft.Data.Sqlite connection.

Quick start

{ "Database": { "Default": "main", "Connections": { "main": { "Driver": "sqlite", "Path": "app.db" } } } }
builder.Services.AddNaravelDatabase(builder.Configuration);         // from Naravel.Database; the order of the two calls does not matter
builder.Services.AddNaravelSqliteDatabase(builder.Configuration);

A connection takes either Path (a file, or :memory:) or a full ConnectionString; with neither, the first use fails with an InvalidOperationException that names both keys. SQLite refuses LockForUpdate, SharedLock and WhereFullText.

Package Adds
Naravel.Database The query builder and named connections that this driver plugs into
Naravel.Database.EntityFrameworkCore A DbContext and the query builder share one connection and one transaction

Learn more

Part of Naravel: Laravel's names, .NET's type system. All Naravel packages share one version.

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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0 283 11/13/2026
0.1.1 99 11/2/2026
0.1.0 106 11/1/2026