MySQL 9.1.0
Source Code Documentation
|
Topics in this section:
The X Plugin implements the X Protocol for the MySQL Server.
Mysqlx::Sql::StmtExecute implements several namespaces:
.stmt
to be a string that the MySQL SQL parser understands.args
replaces wild-cards in .stmt
if any existmysqlx
namespace is dedicated for plugin internal commands.stmt
is the name of the internal command (admin commands).args
have one Mysqlx::Datatypes::Object which contains named arguments for commandcreate_collection
- create a new collection. name
: string - name of created collectionschema
: string - name of collection's schemaoptions
: object, optional - additional collection options
create_collection_index
- create new index on specifed collection. name
: string - name of indexcollection
: string - name of indexed collectionschema
: string - name of collection's schemaunique
: bool - whether the index should be a unique indextype
: string, optional - name of index's type {INDEX
|SPATIAL
|FULLTEXT
}; default: INDEX
with_parser
: string, optional - name of parser for fulltext index {fields
|constraint
: object, list - detailed information for the generated columnfield
|member
: string - path to document member for which the index will be createdrequired
: bool, optional - whether the generated column will be created as NOT NULLtype
: string, optional - data type of the indexed valuesoptions
: int, optional - parameter for generation spatial columnsrid
: int, optional - parameter for generation spatial columnarray
: bool, optional - indexed field is an array of scalarsdisable_notices
- disable sending notices. notice
: string, list - name (or names) of enabled noticedrop_collection
- drop existing collection. name
: string - name of dropped collectionschema
: string - name of collection's schemadrop_collection_index
- drop existing index for collection. name
: string - name of dropped indexcollection
: string - name of collection with dropped indexschema
: string - name of collection's schemaenable_notices
- enable sending notices. notice
: string, list - name(s) of enabled notice(s)ensure_collection
- create a collection; creation is skipped when a collection exists. name
: string - name of created collectionschema
: string, optional - name of collection's schemaoptions
: object, optional - additional collection optionsvalidation
: see validation option for create_collection
commandget_collection_options
- get options for a specified collection. name
: string - name of collectionschema
: string - name of collection's schemaoptions
: string, list - collection options to fetchkill_client
- drop specified client. id
: bigint - the client identification numberlist_clients
- list all connected clients. list_notices
- list all available notices. list_objects
- list objects (tables, collections or views) for specified schema. schema
: string, optional - name of listed object's schemapattern
: string, optional - a filter to use for matching object names to be returnedmodify_collection_options
- modify options for a specified collection. name
: string - name of collectionschema
: string - name of collection's schemaoptions
: object, optional - additional collection optionsvalidation
: see validation option for create_collection
commandping
- checks whether the connection to the plugin is working.