stripe-archive / mosql

MongoDB → PostgreSQL streaming replication
MIT License
1.63k stars 225 forks source link

import inner document #12

Closed Malakhov closed 11 years ago

Malakhov commented 11 years ago

Hi! How can I import inner document to postgresql ?

e.g. {"_id": ObjectId("1111"), "f1": "f1", "innerDocument" : { "f2" : "f2", "f3" : "f3" } };

How to do this mapping ?

nelhage commented 11 years ago

Hi,

Currently, the only support is that if you specify extra_props: true, the document will end up in the _extra_props column in postgres, as part of a JSON document. See #4 for some more ongoing work on better support for embedded documents.