RtoGtoR 1.0.0
dotnet add package RtoGtoR --version 1.0.0
NuGet\Install-Package RtoGtoR -Version 1.0.0
<PackageReference Include="RtoGtoR" Version="1.0.0" />
<PackageVersion Include="RtoGtoR" Version="1.0.0" />
<PackageReference Include="RtoGtoR" />
paket add RtoGtoR --version 1.0.0
#r "nuget: RtoGtoR, 1.0.0"
#:package RtoGtoR@1.0.0
#addin nuget:?package=RtoGtoR&version=1.0.0
#tool nuget:?package=RtoGtoR&version=1.0.0
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, plusNEO4J_USERandNEO4J_PASSWORDforauthEnv: "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
RtoGtoRExceptionwith a stableCode(ErrorCodes.Map005, …),SeverityandRetryable. Invalid mappings list every problem inDiagnostics. - Resuming: if a run fails, is interrupted, or is cancelled, the exception
(or
OperationCanceledException.InnerException) carries theReport. Passreport.RunIdasRunOptions.ResumeRunId. Committed batches are not repeated, and nothing is duplicated. - Progress: set
RunOptions.Progressto anIProgress<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:
EngineOptions.EnginePath- the
RTOGTOR_ENGINE_PATHenvironment variable - the binary bundled for your platform
Learn more
License: Apache-2.0.
| Product | Versions 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. |
-
net8.0
- JsonSchema.Net (>= 9.5.0)
- YamlDotNet (>= 18.1.0)
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 |