Advertisement
Guest User

Untitled

a guest
Feb 29th, 2016
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. {
  2. "config": {
  3. log : "debug"
  4. },
  5. "extractor" : {
  6. "jdbc": { "driver": "com.microsoft.sqlserver.jdbc.SQLServerDriver",
  7. "url": "jdbc:sqlserver://localhost:1434;databaseName=mydb;integratedSecurity=true;",
  8. "userName": "root",
  9. "userPassword": "root",
  10. "query": "select * from locations" }
  11. },
  12.  
  13. "transformers" : [
  14. { "vertex": { "class": "Location"} }
  15. ],
  16. "loader" : {
  17. "orientdb": {
  18. "dbURL": "plocal:C:orientdb-community-2.1.11databasesTest",
  19. dbUser: "admin",
  20. dbPassword: "admin",
  21. dbAutoDropIfExists: false,
  22. dbAutoCreate: true,
  23. tx: false,
  24. wal: false,
  25. batchCommit: 1000,
  26. dbType: "graph",
  27. indexes: [{class:"Location", fields:["id:string"], type:"UNIQUE_HASH_INDEX" }]
  28. }
  29. }
  30. }
  31.  
  32. {
  33. "config": {
  34. log : "debug"
  35. },
  36. "extractor" : {
  37. "jdbc": { "driver": "com.microsoft.sqlserver.jdbc.SQLServerDriver",
  38. "url": "jdbc:sqlserver://localhost:1434;databaseName=mydb;integratedSecurity=true;",
  39. "userName": "root",
  40. "userPassword": "root",
  41. "query": "select * from flights" }
  42. },
  43.  
  44. "transformers" : [
  45. { "edge": { "class": "flight", "direction" : "out",
  46. "joinFieldName": "flightFromLocation",
  47. "lookup":"locationID", "unresolvedLinkAction":"CREATE"}
  48.  
  49. { "class": "flight", "direction" : "in",
  50. "joinFieldName": "flightToLocation",
  51. "lookup":"locationID", "unresolvedLinkAction":"CREATE"}
  52. }
  53. ],
  54. "loader" : {
  55. "orientdb": {
  56. "dbURL": "plocal:C:orientdb-community-2.1.11databasesTest",
  57. dbUser: "admin",
  58. dbPassword: "admin",
  59. dbAutoDropIfExists: false,
  60. dbAutoCreate: true,
  61. tx: false,
  62. wal: false,
  63. batchCommit: 1000,
  64. dbType: "graph",
  65. indexes: [{class:"flight", fields:["id:string"], type:"UNIQUE_HASH_INDEX" }]
  66. }
  67. }
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement