Re: Create or define a collection from a JSON column
Posted by: Andrzej Religa
Date: August 26, 2016 05:53AM

Hi,

For creating a collection you should use createCollection() method on a selected schema.
In your example it would be:
bd_json.createCollection('tab_vol_json');

You can find more details here:
https://dev.mysql.com/doc/x-devapi-userguide/en/creating-a-collection.html

When you create a table manually like you did, you will have a collection-like behavior
but it is not being recognized as a collection by the X Protocol.

--
Andrzej Religa
MySQL Developer Tools

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Create or define a collection from a JSON column
746
August 26, 2016 05:53AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.