stripe-archive / mosql

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

Add support for subdocument array #103

Closed jeremypian closed 9 years ago

jeremypian commented 9 years ago

Added a pipe delimited notation to handle subdocument arrays. usage In collection.yml:

example In a subdocument array like this, {... 'driverLicenses': [{... licenseNumber: 1 ...}, {... licenseNumber: 2 ...}, {... licenseNumber: 3 ...}] ... } mosql will return the active license number, which is the highest indexed license number, 3