unique index with createIndex()
Posted by: Christian Soutou
Date: September 08, 2016 11:30AM

Hi,

I tried to create an unique index as explained in

https://dev.mysql.com/doc/refman/5.7/en/mysql-shell-tutorial-javascript-indexes-create.html


mysql-js> var mysqlx=require('mysqlx');

mysql-js> db.tab_vol_json.createIndex("idx_numvol", mysqlx.IndexType.UNIQUE).
... field("num_vol", "TEXT(30)", false).execute()
...
TypeError: Cannot read property 'UNIQUE' of undefined at (shell):1:58
in db.tab_vol_json.createIndex("idx_numvol", mysqlx.IndexType.UNIQUE).

I don't find any help in the doc
Best regards

Options: ReplyQuote


Subject
Views
Written By
Posted
unique index with createIndex()
1141
September 08, 2016 11:30AM


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.