Activout.DatabaseClient.LibSql 5.1.0

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

Activout Database Client - libSQL backend

An IDatabaseGateway for libSQL databases such as Bunny Database and Turso, built on Nelknet.LibSQL.Data. Nelknet bundles the libSQL engine, so tests can use an in-memory database (Data Source=:memory:) with the same provider as production.

SqliteTypeHandlers.Register(); // once at startup, so Guid and DateTime can be read back
var connection = new LibSQLConnection(connectionString); // "Data Source=:memory:" in tests
var userDao = new DatabaseClientBuilder()
    .With(new LibSqlGateway(connection))
    .Build<IUserDao>();

DapperGateway cannot be used with the libSQL provider, because Dapper removes the @ from parameter names and the provider needs it. LibSqlGateway builds commands with plain ADO.NET and uses Dapper only to map rows.

Values are stored in SQLite-friendly forms: Guid as text, DateTime as UTC text (yyyy-MM-dd HH:mm:ss.fff), bool as 0/1 and enums by name.

SqliteTypeHandlers (from Activout.DatabaseClient.Dapper) lets Dapper read Guid and DateTime values stored as text. Dapper's type handlers are global, so it also applies to any DapperGateway in the process: values stored as text are parsed, and native Guid and DateTime values from other databases are returned unchanged.

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
5.1.0 163 11/17/2026