Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "config": {
- log : "debug"
- },
- "extractor" : {
- "jdbc": { "driver": "com.microsoft.sqlserver.jdbc.SQLServerDriver",
- "url": "jdbc:sqlserver://localhost:1434;databaseName=mydb;integratedSecurity=true;",
- "userName": "root",
- "userPassword": "root",
- "query": "select * from locations" }
- },
- "transformers" : [
- { "vertex": { "class": "Location"} }
- ],
- "loader" : {
- "orientdb": {
- "dbURL": "plocal:C:orientdb-community-2.1.11databasesTest",
- dbUser: "admin",
- dbPassword: "admin",
- dbAutoDropIfExists: false,
- dbAutoCreate: true,
- tx: false,
- wal: false,
- batchCommit: 1000,
- dbType: "graph",
- indexes: [{class:"Location", fields:["id:string"], type:"UNIQUE_HASH_INDEX" }]
- }
- }
- }
- {
- "config": {
- log : "debug"
- },
- "extractor" : {
- "jdbc": { "driver": "com.microsoft.sqlserver.jdbc.SQLServerDriver",
- "url": "jdbc:sqlserver://localhost:1434;databaseName=mydb;integratedSecurity=true;",
- "userName": "root",
- "userPassword": "root",
- "query": "select * from flights" }
- },
- "transformers" : [
- { "edge": { "class": "flight", "direction" : "out",
- "joinFieldName": "flightFromLocation",
- "lookup":"locationID", "unresolvedLinkAction":"CREATE"}
- { "class": "flight", "direction" : "in",
- "joinFieldName": "flightToLocation",
- "lookup":"locationID", "unresolvedLinkAction":"CREATE"}
- }
- ],
- "loader" : {
- "orientdb": {
- "dbURL": "plocal:C:orientdb-community-2.1.11databasesTest",
- dbUser: "admin",
- dbPassword: "admin",
- dbAutoDropIfExists: false,
- dbAutoCreate: true,
- tx: false,
- wal: false,
- batchCommit: 1000,
- dbType: "graph",
- indexes: [{class:"flight", fields:["id:string"], type:"UNIQUE_HASH_INDEX" }]
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement