CoraDB built-in app

CoraDB Relational-to-Graph

A guided relational-to-graph migration wizard.

Moving a relational schema to a graph is a series of judgment calls: which tables are entities, which are relationships, which lookups are worth keeping.
This wizard reads a live catalog, proposes a CoraDB graph and hands it to you to challenge.
Every decision is visible and reversible; nothing is guessed silently.

r2g.coradb.ai
Relational-to-Graph wizard, step 5: reviewing and editing the proposed graph schema
8steps, from source schema to ready-to-run scripts
5source engines
17health checks before any script is written

What you can do with Relational → Graph

r2g.coradb.ai
The migration procedure: eight numbered steps from Connect source to Migration report
01

Eight clear steps

Connect the source, analyze the schema, select tables and columns, generate the graph, edit it, then produce the DDL script, the DML script and the migration report.
Every step can be revisited with Back.

  • Connect · Analyze · Select · Generate · Edit · DDL · DML · Report
  • Workspaces reopen a migration later
  • A password is never stored
r2g.coradb.ai
Step 1: connect to the source database, with the engine list open
02

Five source engines

Read the catalog of a CUBRID, CoraDB, MySQL, MariaDB or PostgreSQL database.
For CoraDB the sample databases are one click away; for the others, Get schemas lists the databases on the server.

  • CoraDB, CUBRID, MySQL, MariaDB, PostgreSQL
  • Connection timeout up to 600 seconds
  • Nothing is executed against a destination
r2g.coradb.ai
Step 2: ER diagram of the olympics database with the overview panel
03

Analyze the relational schema

Step 2 reads tables, columns, keys, indexes and row counts and draws an ER diagram with crow's-foot notation.
Schema notes flag what the graph will need to handle.

  • Interactive ERD with zoom, minimap and layouts
  • Overview of tables, keys and indexes
  • Schema notes: to fix, to check, to know
r2g.coradb.ai
Graph mapping decisions dialog: options for junction tables, surrogate keys and edge direction
04

Six explicit mapping decisions

The proposal turns on decisions you can see and change: naming style, what becomes of junction tables and of those with a surrogate key, edge direction, lookup collapsing, and whether foreign key columns survive.

  • Recommended defaults, each explained
  • Re-run the proposal at any time
  • Same schema and answers always give the same graph
r2g.coradb.ai
Step 4: the generated graph schema for the olympics database, with node types and their properties
05

Generate and edit the graph

Review the proposed vertex and edge types and edit them by hand: rename, retype, add or delete, fold a leaf into its neighbour, or turn a node between two others into the edge it really is.

  • Node and edge types with their properties
  • Lineage of every property back to its source column
  • Boxes or circles, colors and legend
r2g.coradb.ai
Schema health check: 19 rules checked, 8 findings, none blocking the migration
06

Health checks before scripts

Seventeen rules stand between the graph and the scripts: shape, edges, keys, names, types and sources.
Each finding is explained, and all can be waived except an unsupported type.

  • Findings explained in plain sentences
  • Waivable, except unsupported types
  • Run again after every edit
r2g.coradb.ai
Graph size: rows per node and edge type, 3,570 nodes in total
07

Know the size before you load

Graph size counts the rows each node and edge type will load, from which source table, before any data moves.

  • Rows per node and per edge type
  • Source table for each
  • Totals for the whole migration
r2g.coradb.ai
Step 6: the DDL script with CREATE VERTEX TABLE statements next to the graph
08

Ready-to-run DDL and DML

Step 6 writes the CREATE VERTEX and CREATE EDGE statements; step 7 generates the data load on the server, one INSERT per row or in batches, so any size of source is safe.
Step 8 reports what was done.

  • DDL for vertex and edge tables
  • DML in single-row or multi-row batches
  • Export schemas as Mermaid and GraphML
Roadmap

What's next

Today the proposal is deterministic by design, which is what makes a migration reviewable.
Planned additions keep it that way: integrated execution of the scripts against the target CoraDB database, and AI that proposes rather than decides.

  • Run the DDL and DML against the target CoraDB database from the wizard
  • AI analysis of source and destination schema health
  • Help with custom type mappings and index coverage
  • Pairs of relational and graph queries to check the migration's quality and performance

App manual

The Relational-to-Graph manual explains how to use the migration wizard.

Getting access

The online version of CoraDB Relational-to-Graph at r2g.coradb.ai is available on request.
To get access, ask for it at contact@coradb.ai.

  1. Write to contact@coradb.ai with your name, your company and what you would like to try.
  2. We reply with your access details.
  3. Open the app in your browser and connect to your CoraDB database, or to one of the sample databases.