Skip to content

Instantly share code, notes, and snippets.

@evadnoob
Last active February 20, 2017 23:35
Show Gist options
  • Save evadnoob/6ef79ffc0294572656bdad943badf6cf to your computer and use it in GitHub Desktop.
Save evadnoob/6ef79ffc0294572656bdad943badf6cf to your computer and use it in GitHub Desktop.

project approach

create type map asset depends on user etc

create code to render entities as json objects for export(getPartial/exportp1 and get/exportp2)

ideas for how this could be made easier to implement

  1. use an ORM describe the entities as structs (saves time with boilerplate tedius column)

  2. create a json path based mapping from json source to table

create code to import entities from json objects (savepartial/importp1 and save/importp2)

create code that understands the references of each entity and call "migrate" for each of the child ojbjects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment