Skip to content

Instantly share code, notes, and snippets.

@ranhsd
Created September 28, 2017 04:42
Show Gist options
  • Save ranhsd/803fabefd68458550ead92bc9a0b2bca to your computer and use it in GitHub Desktop.
Save ranhsd/803fabefd68458550ead92bc9a0b2bca to your computer and use it in GitHub Desktop.
{
"format_version": 1,
"imports":
[ {
"target_table": "todo.Task",
"source_data" : { "data_type" : "CSV", "file_name" : "tasks.csv", "has_header" : true },
"import_settings" : { "import_columns" : [ "id", "title","note" ] },
"column_mappings" : { "id" : 1, "title" : 2, "note" : 3 }
},
{
"target_table": "todo.SubTask",
"source_data" : { "data_type" : "CSV", "file_name" : "subtask.csv", "has_header" : true },
"import_settings" : { "import_columns" : [ "id","taskId","content"] },
"column_mappings" : { "id" : 1, "taskId" : 2, "content" : 3 }
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment