CodeLogic.SQLite
3.2.9
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package CodeLogic.SQLite --version 3.2.9
NuGet\Install-Package CodeLogic.SQLite -Version 3.2.9
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="CodeLogic.SQLite" Version="3.2.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CodeLogic.SQLite" Version="3.2.9" />
<PackageReference Include="CodeLogic.SQLite" />
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 CodeLogic.SQLite --version 3.2.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CodeLogic.SQLite, 3.2.9"
#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 CodeLogic.SQLite@3.2.9
#: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=CodeLogic.SQLite&version=3.2.9
#tool nuget:?package=CodeLogic.SQLite&version=3.2.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CodeLogic.SQLite
SQLite database library for CodeLogic 3 with connection pooling, LINQ query builder, and automatic table sync. Built on Microsoft.Data.Sqlite.
Install
dotnet add package CodeLogic.SQLite
Quick Start
await Libraries.LoadAsync<SQLiteLibrary>();
var sqlite = Libraries.Get<SQLiteLibrary>();
var repo = sqlite.GetRepository<NoteRecord>("Default");
await repo.InsertAsync(new NoteRecord { Title = "Hello", Body = "World" });
var notes = await sqlite.Query<NoteRecord>("Default")
.Where(n => n.Title.Contains("Hello"))
.OrderByDescending(n => n.CreatedUtc)
.ToListAsync();
Features
- LINQ Query Builder — same fluent API as CodeLogic.MySQL2 (Where, OrderBy, Take, Skip, Join, GroupBy)
- Table Sync — creates or alters SQLite tables to match C# record classes
- Connection Pooling — manages named database connections
- Repository Pattern — Insert, Update, Delete, GetById, GetByColumn, Find
- Health Checks — verifies database file accessibility
Configuration
Auto-generated at data/codelogic/Libraries/CL.SQLite/config.sqlite.json:
{
"enabled": true,
"connections": [
{
"connectionId": "Default",
"databasePath": "data/app/database.db",
"journalMode": "wal",
"poolSize": 5
}
]
}
Documentation
Requirements
- CodeLogic 3.x | .NET 10
License
MIT — see LICENSE
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- CodeLogic (>= 3.2.9 && < 3.3.0)
- Microsoft.Data.Sqlite (>= 9.0.15)
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 |
|---|---|---|
| 4.5.2 | 93 | 5/24/2026 |
| 4.5.1 | 93 | 5/24/2026 |
| 4.5.1-preview.56 | 46 | 5/24/2026 |
| 4.4.2-preview.53 | 45 | 5/24/2026 |
| 4.4.1 | 88 | 5/24/2026 |
| 4.0.5 | 88 | 5/15/2026 |
| 4.0.4 | 99 | 5/9/2026 |
| 4.0.3 | 94 | 5/9/2026 |
| 4.0.1 | 103 | 4/19/2026 |
| 3.3.1 | 95 | 4/18/2026 |
| 3.3.0 | 90 | 4/18/2026 |
| 3.2.11 | 94 | 4/18/2026 |
| 3.2.10 | 92 | 4/18/2026 |
| 3.2.9 | 96 | 4/18/2026 |
| 3.2.8 | 92 | 4/18/2026 |
| 3.2.7 | 90 | 4/18/2026 |
| 3.2.6 | 95 | 4/18/2026 |
| 3.2.5 | 106 | 4/18/2026 |
| 3.2.4 | 95 | 4/17/2026 |
| 3.2.3 | 96 | 4/17/2026 |
Loading failed