RtoGtoR 1.0.0

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

RtoGtoR for .NET

Migrate data between PostgreSQL and Neo4j, in either direction, with explicit mappings, plans you can inspect before writing, resumable runs and value-level verification.

Version 1.0. The mapping's direction decides the way: relational-to-graph reads PostgreSQL and writes Neo4j, graph-to-relational reads Neo4j and writes PostgreSQL. See the compatibility matrix.

The package bundles the RtoGtoR engine for linux-x64, linux-arm64, osx-x64, osx-arm64 and win-x64. The SDK starts it as a child process and stops it when you dispose. All migration logic runs in the engine, which behaves identically for every RtoGtoR SDK.

Install

dotnet add package RtoGtoR

Requires .NET 8 or later.

Use

using RtoGtoR;

var mapping = await Mapping.FromFileAsync("mapping.yaml");
await using var m = new Migration(
    source: Connection.PostgreSql(urlEnv: "SOURCE_URL"),
    destination: Connection.Neo4j("neo4j://localhost:7687", authEnv: "NEO4J"),
    mapping: mapping);

var plan = await m.PlanAsync(ct);                     // nothing is written
var report = await m.RunAsync(new RunOptions { DryRun = false }, ct);
var verification = await m.VerifyAsync(report.RunId, new VerifyOptions { Values = true }, ct); // every value

A complete program, migrating the example both ways: examples/ecommerce/dotnet.

  • Credentials are read from environment variables: SOURCE_URL, plus NEO4J_USER and NEO4J_PASSWORD for authEnv: "NEO4J". They are never sent in protocol messages or printed. Literal values (Connection.PostgreSql(url: ...)) are passed to the engine through private environment variables.
  • Errors are RtoGtoRException with a stable Code (ErrorCodes.Map005, …), Severity and Retryable. Invalid mappings list every problem in Diagnostics.
  • Resuming: if a run fails, is interrupted, or is cancelled, the exception (or OperationCanceledException.InnerException) carries the Report. Pass report.RunId as RunOptions.ResumeRunId. Committed batches are not repeated, and nothing is duplicated.
  • Progress: set RunOptions.Progress to an IProgress<Progress>.
  • Retries: transient errors are retried per RunOptions.Retry (default 3 attempts, 200 ms to 5 s backoff).
  • Typed model: plans, reports, run state and mappings are generated from the specification's JSON Schemas (RtoGtoR.Model).

Engine binary

The SDK looks for the engine, in order:

  1. EngineOptions.EnginePath
  2. the RTOGTOR_ENGINE_PATH environment variable
  3. the binary bundled for your platform

Learn more

License: Apache-2.0.

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.  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. 
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
1.0.0 111 10/30/2026