munchy-bytes / SQLToArangoDB

A class library used to migrate SQL Server graph database into ArangoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQLToArangoDB

A class library used to migrate SQL Server graph database into ArangoDB.

Published Articles

Dependencies

Example

using System;

namespace SQLToArangoDB
{
    public class Program
    {
        static void Main(string[] args)
        {
            using (SQLReader reader = new SQLReader("Server=<machine name>\\<instance>;Database=<database name>;Trusted_Connection=yes;"))
            {
                reader.GetNodes();
                reader.GetEdges();

                using (ArrangoDbWriter writer = new ArrangoDbWriter("http://localhost:8529", "<database name>", "<user>", "<password>"))
                {
                    writer.ImportNodes(reader.Nodes);
                    writer.ImportEdges(reader.Edges);
                }

            }

        }
    }
}

About

A class library used to migrate SQL Server graph database into ArangoDB

License:MIT License


Languages

Language:C# 100.0%