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

None set (str optionName, value value)
 Sets value of an option. More...
 
None set_persist (str optionName, value value)
 Sets value of an option and stores it in the configuration file. More...
 
None unset (str optionName)
 Resets value of an option to default. More...
 
None unset_persist (str 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()

None set ( str  optionName,
value  value 
)

Sets value of an option.

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

◆ set_persist()

None set_persist ( str  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()

None unset ( str  optionName)

Resets value of an option to default.

Parameters
optionNamename of the option to reset.

◆ unset_persist()

None unset_persist ( str  optionName)

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

Parameters
optionNamename of the option to reset.