开发者

converting a List<String> property to individual values in a CSV export from GAE

开发者 https://www.devze.com 2023-02-09 07:16 出处:网络
I have a list of String inside a class in my App Engine project, and in the databas开发者_C百科e export to a CSV (through bulkloader.yaml) the resulting field is the proper List.

I have a list of String inside a class in my App Engine project, and in the databas开发者_C百科e export to a CSV (through bulkloader.yaml) the resulting field is the proper List. The problem is that this CSV is imported again into a MySQL database and such field remains as a single list of strings.

Any idea about how to tweak the .yaml config_file to generate a tuple for every string?


You can't make the bulkloader export multiple rows for a single entity using the YAML configuration. You'll either need to write a custom exporter, or a custom converter - see the bulkloader source for details (in the docstrings).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号