megastef / node-crate

Node.js base DB-Driver for CRATE (www.crate.io)
52 stars 18 forks source link

nested objects #6

Open littleStudent opened 9 years ago

littleStudent commented 9 years ago

Hi, any plans on adding nested objects to the 'create' method?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/6334478-nested-objects?utm_campaign=plugin&utm_content=tracker%2F1042667&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1042667&utm_medium=issues&utm_source=github).
megastef commented 9 years ago

yes, in schema definition you need to use object type. Currently you can do it by building your own sql string and use the executeSql function directly. I will have a look at it next days.

littleStudent commented 9 years ago

thanks! will use executeSql for now.

vincic commented 7 years ago

I have a implementation of nested objects at https://github.com/vincic/node-crate/commit/77e98cf248b7bd0f83c40c66933a712afda9817f feedback is welcome.

I see that node-crate has gotten few commits since the fork, will try to update.