MySQL Shell API 8.0.40
Unified development interface for MySQL Products
|
Gives access to functions which allow to interact with the operating system. More...
Methods | |
String | getcwd () |
Retrieves the absolute path of the current working directory. More... | |
String | getenv (String name) |
Retrieves the value of the specified environment variable. More... | |
String | loadTextFile (String path) |
Reads the contents of a text file. More... | |
Undefined | sleep (Number seconds) |
Stops the execution for the given number of seconds. More... | |
Bool | file_exists (String path) |
Checks if the given path exists and is a file. More... | |
String | get_binary_folder () |
Provides the path to the folder which contains the binary of shell. More... | |
String | get_mysqlx_home_path () |
Provides the path to the home folder for the shell. More... | |
String | get_user_config_path () |
Provides the path to the shell configuration folder. More... | |
String | load_text_file (String path) |
Reads the contents of a text file. More... | |
Properties | |
Path | path |
Gives access to path-related functions. | |
Gives access to functions which allow to interact with the operating system.
String getcwd | ( | ) |
Retrieves the absolute path of the current working directory.
String getenv | ( | String | name | ) |
Retrieves the value of the specified environment variable.
name | The name of the environment variable. |
String loadTextFile | ( | String | path | ) |
Reads the contents of a text file.
path | The path to the file to be read. |
RuntimeError | If the specified file does not exist. |
Undefined sleep | ( | Number | seconds | ) |
Stops the execution for the given number of seconds.
seconds | The number of seconds to sleep for. |
Bool file_exists | ( | String | path | ) |
Checks if the given path exists and is a file.
path | A file-system path. |
String get_binary_folder | ( | ) |
Provides the path to the folder which contains the binary of shell.
String get_mysqlx_home_path | ( | ) |
Provides the path to the home folder for the shell.
String get_user_config_path | ( | ) |
Provides the path to the shell configuration folder.
String load_text_file | ( | String | path | ) |
Reads the contents of a text file.
path | The path to the file to be read. |
RuntimeError | If the specified file does not exist. |