mysqlx.Client

class mysqlx.Client(connection_dict, options_dict=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()

Closes the sessions opened by this client.

get_session()

Creates a Session instance using the provided connection data.

Returns:Session object.
Return type:Session