Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1014 Bytes

README.md

File metadata and controls

39 lines (29 loc) · 1014 Bytes

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);
                }

            }

        }
    }
}