Documentation Home
X DevAPI User Guide for MySQL Shell in Python Mode
Download this Manual
PDF (US Ltr) - 1.2Mb
PDF (A4) - 1.2Mb


X DevAPI User Guide for MySQL Shell in Python Mode  /  CRUD EBNF Definitions  /  Collection Index Management Functions

11.4 Collection Index Management Functions

Collection.createIndex() Function

The syntax for this function shown in EBNF is:

CollectionCreateIndex
    ::= '.createIndex(' StringLiteral ',' DocumentOrJSON ')'

Figure 11.13 CollectionCreateIndexFunction

Image shows the syntax in EBNF form as described in the preceding text.

CollectionDropIndex

The syntax for this function shown in EBNF is:

CollectionDropIndex
    ::= '.dropIndex(' StringLiteral ')'

Figure 11.14 CollectionDropIndex

Image shows the syntax in EBNF form as described in the preceding text.