mysqlx.Client

class mysqlx.Client(connection_dict: Dict[str, Any], options_dict: Dict[str, Any] | None = None)

Bases: object

Class defining a client, it stores a connection configuration.

Parameters:
  • connection_dict (dict) – The connection information to connect to a MySQL server.

  • options_dict (dict) – The options to configure this client.

New in version 8.0.13.

close() None

Closes the sessions opened by this client.

get_session() Session

Creates a Session instance using the provided connection data.

Returns:

Session object.

Return type:

Session