MySQL Shell API 9.1.0
Unified development interface for MySQL Products
Methods | List of all members
Options Class Reference

Gives access to options impacting shell behavior. More...

Methods

Undefined set (String optionName, Value value)
 Sets value of an option. More...
 
Undefined setPersist (String optionName, Value value)
 Sets value of an option and stores it in the configuration file. More...
 
Undefined unset (String optionName)
 Resets value of an option to default. More...
 
Undefined unsetPersist (String optionName)
 Resets value of an option to default and removes it from the configuration file. More...
 

Detailed Description

Gives access to options impacting shell behavior.

The options object acts as a dictionary, it may contain the following attributes:

The resultFormat option supports the following values to modify the format of printed query results:

Member Function Documentation

◆ set()

Undefined set ( String  optionName,
Value  value 
)

Sets value of an option.

Parameters
optionNamename of the option to set.
valuenew value for the option.

◆ setPersist()

Undefined setPersist ( String  optionName,
Value  value 
)

Sets value of an option and stores it in the configuration file.

Parameters
optionNamename of the option to set.
valuenew value for the option.

◆ unset()

Undefined unset ( String  optionName)

Resets value of an option to default.

Parameters
optionNamename of the option to reset.

◆ unsetPersist()

Undefined unsetPersist ( String  optionName)

Resets value of an option to default and removes it from the configuration file.

Parameters
optionNamename of the option to reset.