Couchbase.Lite.Enterprise 3.2.0-beta.2

The ID prefix of this package has been reserved for one of the owners of this package by Prefix Reserved
This is a prerelease version of Couchbase.Lite.Enterprise.
dotnet add package Couchbase.Lite.Enterprise --version 3.2.0-beta.2
NuGet\Install-Package Couchbase.Lite.Enterprise -Version 3.2.0-beta.2
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="Couchbase.Lite.Enterprise" Version="3.2.0-beta.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Couchbase.Lite.Enterprise --version 3.2.0-beta.2
#r "nuget: Couchbase.Lite.Enterprise, 3.2.0-beta.2"
#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.
// Install Couchbase.Lite.Enterprise as a Cake Addin
#addin nuget:?package=Couchbase.Lite.Enterprise&version=3.2.0-beta.2&prerelease

// Install Couchbase.Lite.Enterprise as a Cake Tool
#tool nuget:?package=Couchbase.Lite.Enterprise&version=3.2.0-beta.2&prerelease

Couchbase Lite .NET

Couchbase Lite is a lightweight embedded NoSQL database that has built-in sync to larger backend structures, such as Couchbase Server.

This is the source repo of Couchbase Lite C#. The main supported platforms are .NET 6 Desktop (Linux will run anywhere, but is most tested on Ubuntu), .NET 8 iOS, .NET 8 Android, .NET 8 Mac Catalyst, .NET 8 WinUI, Xamarin iOS, and Xamarin Android.

Documentation Overview

Getting Started

The following starter code demonstrates the basic concepts of the library:

using System;
using Couchbase.Lite;
using Couchbase.Lite.Query;
using Couchbase.Lite.Sync;

// Get the database (and create it if it doesn't exist)
var database = new Database("mydb");
var collection = database.GetDefaultCollection();

// Create a new document (i.e. a record) in the database
var id = default(string);
using var createdDoc = new MutableDocument();
createdDoc.SetFloat("version", 2.0f)
    .SetString("type", "SDK");

// Save it to the database
id = createdDoc.Id;

// Update a document
using var doc = collection.GetDocument(id);
using var mutableDoc = doc.ToMutable();
createdDoc.SetString("language", "C#");

using var docAgain = collection.GetDocument(id);
Console.WriteLine($"Document ID :: {docAgain.Id}");
Console.WriteLine($"Learning {docAgain.GetString("language")}");

// Create a query to fetch documents of type SDK
// i.e. SELECT * FROM database WHERE type = "SDK"
using var query = QueryBuilder.Select(SelectResult.All())

// Alternatively, using SQL++, with _ referring to the database
using var sqlppQuery = collection.CreateQuery("SELECT * FROM _ WHERE type = 'SDK'");

// Run the query
var result = query.Execute();
Console.WriteLine($"Number of rows :: {result.AllResults().Count}");

// Create replicator to push and pull changes to and from the cloud
var targetEndpoint = new URLEndpoint(new Uri("ws://localhost:4984/getting-started-db"));
var replConfig = new ReplicatorConfiguration(targetEndpoint);

// Add authentication
replConfig.Authenticator = new BasicAuthenticator("john", "pass");

// Create replicator
var replicator = new Replicator(replConfig);
replicator.AddChangeListener((sender, args) =>
    if (args.Status.Error != null) {
        Console.WriteLine($"Error :: {args.Status.Error}");


// Later, stop and dispose the replicator *before* closing/disposing the database
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 was computed.  net8.0-android was computed.  net8.0-android34.0 is compatible.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-ios17.2 is compatible.  net8.0-maccatalyst was computed.  net8.0-maccatalyst17.2 is compatible.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net8.0-windows10.0.19041 is compatible. 
.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 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed.  monoandroid10.0 is compatible. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed.  xamarinios10 is compatible. 
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 (1)

Showing the top 1 popular GitHub repositories that depend on Couchbase.Lite.Enterprise:

Repository Stars
A lightweight, document-oriented (NoSQL), syncable database engine for .NET
Version Downloads Last updated
3.2.0-beta.2 59 5/16/2024
3.1.7 8,274 5/1/2024
3.1.6 18,540 3/6/2024
3.1.3 10,613 11/16/2023
3.1.1 61,001 7/18/2023
3.1.0 2,490 4/27/2023
3.0.15 1,353 11/6/2023
3.0.12 25,981 6/26/2023
3.0.8 18,889 2/8/2023
3.0.2 21,266 8/2/2022
3.0.0 24,096 2/22/2022
3.0.0-beta02 2,552 10/19/2021
3.0.0-beta01 408 9/21/2021
2.8.6 57,729 8/3/2021
2.8.4 41,948 3/2/2021
2.8.2 90,227 11/20/2020
2.8.0 1,744 9/30/2020
2.7.1 21,762 4/17/2020
2.7.0 13,843 1/16/2020
2.6.4 676 2/11/2020
2.6.0 3,925 8/27/2019
2.5.3 4,021 7/31/2019
2.5.2 706 7/3/2019
2.5.0 1,376 4/30/2019
2.1.5 707 5/23/2019
2.1.2 5,315 11/16/2018
2.1.1 5,445 10/5/2018
2.1.0 1,591 8/30/2018
2.0.3 1,090 6/5/2018
2.0.2 1,075 6/1/2018 1,173 4/12/2018
2.0.0 1,262 4/12/2018