Guest User

Untitled

a guest
Dec 12th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. EXTRACTION:
  2. HOST : localhost
  3. USER : postgres
  4. PASSWORD :
  5. DATABASE : fandom
  6. COMMIT:
  7. HOST : localhost
  8. USER :
  9. PASSWORD :
  10. DATABASE : fandom
  11. MIGRATION:
  12. INIT_TABLE: universes
  13. INIT_KEYS:
  14. - id as uv_id
  15. - universe as trax_universe
  16. - created_at as trax_created_at
  17. SKELETON :
  18. - KEY1 = {}
  19. - KEY2 = {}
  20. TABLES_ORDER :
  21. - heroes
  22. - weapons
  23. TABLES :
  24. heroes :
  25. condition : universe_id = uv_id
  26. #Dictionary's key ==> Postgres Field of the corresponding schema.table1
  27. mapping :
  28. - KEY1['hero_id'] = %s['hero_id']
  29. - KEY1['universe_id'] = %s['universe_id']
  30. - KEY1['name'] = %s['name']
  31. - KEY1['created_at'] = %s['created_at']
  32. - KEY1['weapons'] = []
  33. weapons :
  34. condition : hero_id = KEY1['hero_id']
  35. mapping :
  36. - list:
  37. - KEY1['weapons'].append({})
  38. - KEY1['weapons'][-1]['weapon_name'] = %s['weapon_name']
  39. - KEY1['weapons'][-1]['weapon_category'] = %s['weapon_category']
  40. COLLECTIONS :
  41. heroes : KEY1
  42. #Collection name <== skeleton
Add Comment
Please, Sign In to add comment