Platform.Data.Doublets 0.18.1

dotnet add package Platform.Data.Doublets --version 0.18.1                
NuGet\Install-Package Platform.Data.Doublets -Version 0.18.1                
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="Platform.Data.Doublets" Version="0.18.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Platform.Data.Doublets --version 0.18.1                
#r "nuget: Platform.Data.Doublets, 0.18.1"                
#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 Platform.Data.Doublets as a Cake Addin
#addin nuget:?package=Platform.Data.Doublets&version=0.18.1

// Install Platform.Data.Doublets as a Cake Tool
#tool nuget:?package=Platform.Data.Doublets&version=0.18.1                

Gitpod

NuGet Version and Downloads count Actions Status Codacy Badge CodeFactor

Data.Doublets (русская версия)

LinksPlatform's Platform.Data.Doublets Class Library.

Namespace: Platform.Data.Doublets

Forked from: Konard/LinksPlatform/Platform/Platform.Data.Doublets

NuGet package: Platform.Data.Doublets

Example | Run .NET fiddle

using System;
using Platform.Data;
using Platform.Data.Doublets;
using Platform.Data.Doublets.Memory.United.Generic;

// A doublet links store is mapped to "db.links" file:
using var links = new UnitedMemoryLinks<uint>("db.links");

// A creation of the doublet link: 
var link = links.Create();

// The link is updated to reference itself twice (as a source and a target):
link = links.Update(link, newSource: link, newTarget: link);

// Read operations:
Console.WriteLine($"The number of links in the data store is {links.Count()}.");
Console.WriteLine("Data store contents:");
var any = links.Constants.Any; // Means any link address or no restriction on link address
// Arguments of the query are interpreted as restrictions
var query = new Link<uint>(index: any, source: any, target: any);
links.Each((link) => {
    Console.WriteLine(links.Format(link));
    return links.Constants.Continue;
}, query);

// The link's content reset:
link = links.Update(link, newSource: default, newTarget: default);

// The link deletion:
links.Delete(link);

SQLite vs Doublets

Image with result of performance comparison between SQLite and Doublets.

Documentation

PDF file with code for e-readers.

Dependency graph [C#]

C# dependency graph SVG image

Dependency graph [C++]

C++ dependency graph SVG image

Depend on

Support

Ask questions at stackoverflow.com/tags/links-platform (or with tag links-platform) to get our free support.

You can also get real-time support on our official Discord server.

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Platform.Data.Doublets:

Package Downloads
Platform.Data.Doublets.Sequences

LinksPlatform's Platform.Data.Doublets.Sequences Class Library

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.18.1 92 1/26/2025
0.17.2 521 3/24/2023
0.17.1 400 2/19/2023
0.17.0 454 1/14/2023
0.16.0 312 1/7/2023
0.15.0 332 12/15/2022
0.13.4 2,158 4/7/2022
0.13.3 508 3/31/2022
0.13.2 513 2/22/2022
0.13.1 914 2/20/2022
0.13.0 487 2/2/2022
0.12.0 493 2/2/2022
0.11.1 460 1/30/2022
0.11.0 460 1/30/2022
0.10.1 441 1/30/2022
0.10.0 442 1/25/2022
0.9.0 449 1/25/2022
0.8.0 474 1/19/2022
0.7.0 1,171 8/14/2021
0.6.11 778 8/8/2021
0.6.10 689 7/18/2021
0.6.9 332 7/17/2021
0.6.8 385 7/2/2021
0.6.7 1,138 12/25/2020
0.6.6 642 3/24/2020
0.6.5 589 3/21/2020
0.6.4 571 3/21/2020
0.6.3 494 3/21/2020
0.6.2 491 3/21/2020
0.6.1 547 3/20/2020
0.6.0 523 3/20/2020
0.5.0 558 2/24/2020
0.4.0 575 11/10/2019
0.3.0 544 11/8/2019
0.2.1 620 9/22/2019
0.2.0 566 9/16/2019
0.1.1 556 8/20/2019
0.1.0 547 8/18/2019
0.0.1 577 7/29/2019

Update to use only .NET 8.
README.md is added to NuGet.