Skip to content

Commit 2a5f433

Browse files
authored
Create README.md
1 parent b688458 commit 2a5f433

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

README.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# SQLToArangoDB
2+
A class library used to migrate SQL Server graph database into Neo4j.
3+
4+
# Published Articles
5+
6+
- Migrating SQL Server graph database to ArangoDB (Under review)
7+
8+
# Dependencies
9+
10+
- [ArangoDB.CLient](https://www.nuget.org/packages/ArangoDB.Client/)
11+
12+
## Example
13+
```csharp
14+
using System;
15+
16+
namespace SQLToArangoDB
17+
{
18+
public class Program
19+
{
20+
static void Main(string[] args)
21+
{
22+
using (SQLReader reader = new SQLReader("Server=<machine name>\\<instance>;Database=<database name>;Trusted_Connection=yes;"))
23+
{
24+
reader.GetNodes();
25+
reader.GetEdges();
26+
27+
using (ArrangoDbWriter writer = new ArrangoDbWriter("http://localhost:8529", "<database name>", "<user>", "<password>"))
28+
{
29+
writer.ImportNodes(reader.Nodes);
30+
writer.ImportEdges(reader.Edges);
31+
}
32+
33+
}
34+
35+
}
36+
}
37+
}
38+
39+
```

0 commit comments

Comments
 (0)