B4n1.Db 0.1.4

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

b4n1-db — .NET SDK

Thin C# wrapper over the b4n1-db standalone binary. All storage, SQL, graph, vector and audit logic lives in the binary; this package only invokes it. JSON comes back as text, so the package has no dependencies: parse it with the JSON library your application already uses.

Install

dotnet add package B4n1.Db

The binary is resolved in this order: B4N1_DB_BIN, the copy bundled under native/ in the package, then b4n1-db on PATH.

Usage

using B4n1.Db;

var db = new Database("./data");

db.Kv.Put("greeting", "hello");
Console.WriteLine(db.Kv.Get("greeting"));   // {"key":"greeting","value":"hello"}

db.Sql.Execute("CREATE TABLE u (id BIGINT, name VARCHAR)");
db.Sql.Execute("INSERT INTO u VALUES (1, 'ada')");
Console.WriteLine(db.Sql.Query("SELECT name FROM u"));

Console.WriteLine(db.Graph.AddNode("pattern", "ada"));  // {"ok":true,"id":"…"}
db.Doc.Insert("notes", new Dictionary<string, object> { ["text"] = "first" });
db.Queue.Push("jobs", "build");
db.Audit.Verify();

Engines

Group Methods
Kv Put, Get, Delete, Scan, PutTtl, Ttl, PurgeExpired
Sql Execute, Query, Tables, RegisterCsv, RegisterJson, RegisterParquet, Drop
Graph AddNode, AddRelation, Node, Search, Forget
Doc Insert, FindOne, Find, FindByField, Update, Delete
Queue Push, Pop, Peek, Ack, Nack, Clear, Len
Vector Insert, Search, Delete, List
Audit Verify, History, Latest, TimeTravel, RootHash
Migration List, Add, Apply, Exec, Rollback
Transfer Backup, Restore, Export, Import

Vectors use the database dimension (1536 by default). Graph node types are instruction, intention, contract, pattern, scaffold, qapair and cyclerecord.

Test

B4N1_DB_BIN=/path/to/b4n1-db dotnet run --project tests/SurfaceSmoke

License

BUSL-1.1 (see LICENSE). Binaries are governed by EULA.txt.

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 netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen 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.

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.1.4 47 11/27/2026
0.1.2 88 11/20/2026
0.1.1 102 11/18/2026
0.1.0 99 11/18/2026