mysql-connector-python API reference
400 public APIs from mysql-connector-python (mysql/mysql-connector-python) — 89 classes, 38 functions, 273 methods. Signatures extracted by static analysis of the actual source.
Repository: mysql/mysql-connector-python
| Kind | Count |
|---|---|
| Classes | 89 |
| Functions | 38 |
| Methods | 273 |
API list
func
automation.headerfy.update_header(root:Union[str, Path], filename:str) -> NoneUpdates the Copyright header of the provided file.
class
mysql-connector-python.cpydist.BaseCommandBase command class for Connector/Python.
method
mysql-connector-python.cpydist.BaseCommand.finalize_options()Finalize the options.
method
mysql-connector-python.cpydist.BaseCommand.initialize_options()Initialize the options.
method
mysql-connector-python.cpydist.BaseCommand.remove_temp()Remove temporary build files.
method
mysql-connector-python.cpydist.BuildExt.finalize_options()Finalize the options.
method
mysql-connector-python.cpydist.BuildExt.initialize_options()Initialize the options.
method
mysql-connector-python.cpydist.BuildExt.run()Run the command.
class
mysql-connector-python.cpydist.InstallInstall Connector/Python implementation.
method
mysql-connector-python.cpydist.Install.finalize_options()Finalize the options.
method
mysql-connector-python.cpydist.Install.initialize_options()Initialize the options.
class
mysql-connector-python.cpydist.InstallLibInstallLib Connector/Python implementation.
method
mysql-connector-python.cpydist.InstallLib.finalize_options()Finalize the options.
method
mysql-connector-python.cpydist.InstallLib.initialize_options()Initialize the options.
method
mysql-connector-python.cpydist.InstallLib.run()Run the command.
class
mysql-connector-python.cpydist.bdist.DistBinaryCreate a generic binary distribution.
method
mysql-connector-python.cpydist.bdist.DistBinary.finalize_options()Finalize the options.
method
mysql-connector-python.cpydist.bdist.DistBinary.initialize_options()Initialize the options.
method
mysql-connector-python.cpydist.bdist.DistBinary.run()Run the command.
class
mysql-connector-python.cpydist.bdist_wheel.DistWheelCreate a Wheel distribution.
method
mysql-connector-python.cpydist.bdist_wheel.DistWheel.finalize_options()Finalize the options.
method
mysql-connector-python.cpydist.bdist_wheel.DistWheel.initialize_options()Initialize the options.
method
mysql-connector-python.cpydist.bdist_wheel.DistWheel.run()Run the command.
class
mysql-connector-python.cpydist.sdist.DistSourceCreate a generic source distribution.
method
mysql-connector-python.cpydist.sdist.DistSource.finalize_options()Finalize the options.
method
mysql-connector-python.cpydist.sdist.DistSource.initialize_options()Initialize the options.
method
mysql-connector-python.cpydist.sdist.DistSource.make_release_tree(base_dir, files)Make the release tree.
method
mysql-connector-python.cpydist.sdist.DistSource.run()Run the command.
func
mysql-connector-python.cpydist.utils.unarchive_targz(tarball)Unarchive a tarball.
func
mysql-connector-python.cpydist.utils.write_info_bin(mysql_version=None, compiler=None)Generate docs/INFO_BIN.
func
mysql-connector-python.cpydist.utils.write_info_src(version)Generate docs/INFO_SRC.
class
mysql-connector-python.lib.mysql.ai.genai.generation.MyLLM.ConfigPydantic config for the model.
class
mysql-connector-python.lib.mysql.ai.ml.model.ML_TASKEnumeration of supported ML tasks for HeatWave.
func
mysql-connector-python.lib.mysql.ai.utils.utils.is_table_empty(cursor:MySQLCursorAbstract, schema_name:str, table_name:str) -> boolDetermine if a given SQL table is empty.
func
mysql-connector-python.lib.mysql.connector._decorating.deprecated(reason:str) -> CallableUse it to decorate deprecated methods.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.autocommit() -> boolGets whether autocommit is on or off.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.close() -> NoneDisconnects from the MySQL server.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.cmd_init_db(database:str) -> Optional[Dict[str, Any]]Changes the current database.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.cmd_process_kill(mysql_pid:int) -> Optional[Dict[str, Any]]Kills a MySQL process.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.cmd_shutdown(shutdown_type:Optional[int]=None) -> NoneShuts down the MySQL Server.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.cmd_stmt_prepare(statement:bytes, **kwargs:Any) -> Union[Mapping[str, Any], CMySQLPrepStmt]Prepares a MySQL statement.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.cmd_stmt_send_long_data(statement_id:Union[int, CMySQLPrepStmt], param_id:int, data:BinaryIO, **kwargs:Any) -> intSends data for a column.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.commit() -> NoneCommits current transaction.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.config(**kwargs:Any) -> NoneConfigures the MySQL Connection.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.connect(**kwargs:Any) -> NoneConnects to the MySQL server.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.connection_id() -> Optional[int]MySQL connection ID.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.database() -> strThe current database.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.get_server_version() -> Optional[Tuple[int, ...]]Gets the MySQL version.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.have_next_result() -> boolReturns If have next result.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.info_query(query:str) -> Optional[RowType]Sends a query which only returns 1 row.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.isset_client_flag(flag:int) -> boolChecks if a client flag is set.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.ping(reconnect:bool=False, attempts:int=1, delay:int=0) -> NoneChecks availability of the MySQL server.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.reconnect(attempts:int=1, delay:int=0) -> NoneAttempts to reconnect to the MySQL server.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.rollback() -> NoneRollbacks current transaction.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.server_host() -> strMySQL server IP address or name.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.server_port() -> intMySQL server TCP/IP port.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.set_client_flags(flags:Union[int, Sequence[int]]) -> intSets the client flags.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.set_converter_class(convclass:Optional[Type[MySQLConverter]]) -> NoneSets the converter class to be used.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.set_login(username:Optional[str]=None, password:Optional[str]=None) -> NoneSets login information for MySQL.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.shutdown() -> NoReturnShuts down connection to MySQL Server.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.sql_mode() -> strGets the SQL mode.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.start_transaction(consistent_snapshot:bool=False, isolation_level:Optional[str]=None, readonly:Optional[bool]=None) -> NoneStarts a transaction.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLConnectionAbstract.time_zone() -> strGets the current time zone.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLCursorAbstract.close() -> NoneClose the cursor.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLCursorAbstract.reset(free:bool=True) -> NoneResets the cursor to default
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLCursorAbstract.setinputsizes(sizes:Any) -> NoReturnNot Implemented.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLCursorAbstract.setoutputsize(size:Any, column:Any=None) -> NoReturnNot Implemented.
method
mysql-connector-python.lib.mysql.connector.abstracts.MySQLCursorAbstract.warning_count() -> intReturns the number of warnings.
func
mysql-connector-python.lib.mysql.connector.aio._decorating.deprecated(reason:str) -> CallableUse it to decorate deprecated methods.
class
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstractDefines the MySQL connection interface.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.add_cursor(cursor:MySQLCursorAbstract) -> NoneAdd cursor to the weakref set.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.close() -> NoneClose the connection.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.cmd_debug() -> EofPacketTypeSend the DEBUG command.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.cmd_init_db(database:str) -> OkPacketTypeChange the current database.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.cmd_ping() -> OkPacketTypeSend the PING command.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.cmd_process_kill(mysql_pid:int) -> OkPacketTypeKill a MySQL process.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.cmd_query(query:StrOrBytes, raw:bool=False, buffered:bool=False, raw_as_string:bool=False, **kwargs:Any) -> ResultTypeSend a query to the MySQL server.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.cmd_shutdown(shutdown_type:Optional[int]=None) -> NoneShut down the MySQL Server.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.cmd_stmt_close(statement_id:int, **kwargs:Any) -> NoneDeallocate a prepared MySQL statement.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.cmd_stmt_fetch(statement_id:int, rows:int=1, **kwargs:Any) -> NoneFetch a MySQL statement Result Set.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.cmd_stmt_prepare(statement:bytes, **kwargs:Any) -> Mapping[str, Union[int, List[DescriptionType]]]Prepare a MySQL statement.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.cmd_stmt_send_long_data(statement_id:int, param_id:int, data:BinaryIO, **kwargs:Any) -> intSend data for a column.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.commit() -> NoneCommit current transaction.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.connect() -> NoneConnect to the MySQL server.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.connection_id() -> Optional[int]MySQL connection ID.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.consume_results() -> NoneConsume pending results.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.database() -> strGet the current database.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.get_database() -> strGet the current database.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.get_self() -> MySQLConnectionAbstractReturn self for weakref.proxy.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.get_server_version() -> Optional[Tuple[int, ...]]Gets the MySQL version.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.get_sql_mode() -> strGets the SQL mode.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.get_time_zone() -> strGets the current time zone.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.handle_unread_result() -> NoneHandle unread result.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.have_next_result() -> boolReturn if have next result.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.info_query(query:StrOrBytes) -> Optional[RowType]Send a query which only returns 1 row.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.isset_client_flag(flag:int) -> boolChecks if a client flag is set.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.loop() -> asyncio.AbstractEventLoopReturn the event loop.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.ping(reconnect:bool=False, attempts:int=1, delay:int=0) -> boolCheck availability of the MySQL server.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.reconnect(attempts:int=1, delay:int=0) -> NoneAttempts to reconnect to the MySQL server.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.remove_cursor(cursor:MySQLCursorAbstract) -> NoneRemove cursor from the weakref set.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.rollback() -> NoneRollback current transaction.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.server_host() -> strMySQL server IP address or name.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.server_port() -> intMySQL server TCP/IP port.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.server_version() -> Optional[Tuple[int, ...]]Gets the MySQL version.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.set_allow_local_infile_in_path(path:str) -> NoneSet the path that user can upload files.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.set_autocommit(value:bool) -> NoneToggle autocommit.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.set_client_flags(flags:Union[int, Sequence[int]]) -> intSet the client flags.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.set_converter_class(convclass:Optional[Type[MySQLConverter]]) -> NoneSet the converter class to be used.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.set_database(value:str) -> NoneSet the current database.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.set_sql_mode(value:Union[str, Sequence[int]]) -> NoneSets the SQL mode.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.set_time_zone(value:str) -> NoneSets the time zone.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.sql_mode() -> strGets the SQL mode.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.start_transaction(consistent_snapshot:bool=False, isolation_level:Optional[str]=None, readonly:Optional[bool]=None) -> NoneStarts a transaction.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.time_zone() -> strGets the current time zone.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.unix_socket() -> Optional[str]MySQL Unix socket file location.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLConnectionAbstract.user() -> strUser used while connecting to MySQL.
class
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLCursorAbstractDefines the MySQL cursor interface.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLCursorAbstract.close() -> boolClose the cursor.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLCursorAbstract.column_names() -> Tuple[str, ...]Returns column names.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLCursorAbstract.fetchone() -> Optional[RowType]Return next row of a query result set.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLCursorAbstract.fetchwarnings() -> Optional[List[WarningType]]Returns Warnings.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLCursorAbstract.reset(free:bool=True) -> AnyReset the cursor to default.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLCursorAbstract.warning_count() -> intReturn the number of warnings.
method
mysql-connector-python.lib.mysql.connector.aio.abstracts.MySQLCursorAbstract.warnings() -> Optional[List[WarningType]]Gets warnings.
class
mysql-connector-python.lib.mysql.connector.aio.authentication.MySQLAuthenticatorImplements the authentication phase.
class
mysql-connector-python.lib.mysql.connector.aio.charsets.CharsetDataclass representing a character set.
method
mysql-connector-python.lib.mysql.connector.aio.connection.MySQLConnection.cmd_debug() -> EofPacketTypeSend the DEBUG command.
method
mysql-connector-python.lib.mysql.connector.aio.connection.MySQLConnection.cmd_init_db(database:str) -> OkPacketTypeChange the current database.
method
mysql-connector-python.lib.mysql.connector.aio.connection.MySQLConnection.cmd_ping() -> OkPacketTypeSend the PING command.
method
mysql-connector-python.lib.mysql.connector.aio.connection.MySQLConnection.cmd_process_kill(mysql_pid:int) -> OkPacketTypeKill a MySQL process.
method
mysql-connector-python.lib.mysql.connector.aio.connection.MySQLConnection.cmd_shutdown(shutdown_type:Optional[int]=None) -> NoneShut down the MySQL Server.
method
mysql-connector-python.lib.mysql.connector.aio.connection.MySQLConnection.cmd_stmt_close(statement_id:int, **kwargs:Any) -> NoneDeallocate a prepared MySQL statement.
method
mysql-connector-python.lib.mysql.connector.aio.connection.MySQLConnection.cmd_stmt_fetch(statement_id:int, rows:int=1, **kwargs:Any) -> NoneFetch a MySQL statement Result Set.
method
mysql-connector-python.lib.mysql.connector.aio.connection.MySQLConnection.cmd_stmt_prepare(statement:bytes, **kwargs:Any) -> Mapping[str, Union[int, List[DescriptionType]]]Prepare a MySQL statement.
method
mysql-connector-python.lib.mysql.connector.aio.connection.MySQLConnection.cmd_stmt_send_long_data(statement_id:int, param_id:int, data:BinaryIO, **kwargs:Any) -> intSend data for a column.
method
mysql-connector-python.lib.mysql.connector.aio.connection.MySQLConnection.commit() -> NoneCommit current transaction.
method
mysql-connector-python.lib.mysql.connector.aio.connection.MySQLConnection.connection_id() -> Optional[int]MySQL connection ID.
method
mysql-connector-python.lib.mysql.connector.aio.connection.MySQLConnection.ping(reconnect:bool=False, attempts:int=1, delay:int=0) -> NoneCheck availability of the MySQL server.
method
mysql-connector-python.lib.mysql.connector.aio.connection.MySQLConnection.rollback() -> NoneRollback current transaction.
method
mysql-connector-python.lib.mysql.connector.aio.connection.MySQLConnection.shutdown() -> NoneShut down connection to MySQL Server.
class
mysql-connector-python.lib.mysql.connector.aio.cursor.MySQLCursorDefault cursor for interacting with MySQL.
method
mysql-connector-python.lib.mysql.connector.aio.cursor.MySQLCursor.fetchall() -> List[RowType]Return all rows of a query result set.
func
mysql-connector-python.lib.mysql.connector.aio.cursor.MySQLCursor.remove_comments(match:re.Match) -> strRemove comments from INSERT statements.
class
mysql-connector-python.lib.mysql.connector.aio.cursor.MySQLCursorBufferedCursor which fetches rows within execute().
method
mysql-connector-python.lib.mysql.connector.aio.cursor.MySQLCursorBuffered.reset(free:bool=True) -> NoneReset the cursor to default.
class
mysql-connector-python.lib.mysql.connector.aio.cursor.MySQLCursorDictCursor fetching rows as dictionaries.
class
mysql-connector-python.lib.mysql.connector.aio.cursor.MySQLCursorPreparedCursor using MySQL Prepared Statements
func
mysql-connector-python.lib.mysql.connector.aio.cursor.replace(matchobj:re.Match) -> bytesReplace pattern.
class
mysql-connector-python.lib.mysql.connector.aio.network.MySQLSocketMySQL socket communication interface.
method
mysql-connector-python.lib.mysql.connector.aio.network.MySQLSocket.address() -> strSocket location.
method
mysql-connector-python.lib.mysql.connector.aio.network.MySQLSocket.close_connection() -> NoneClose the connection.
method
mysql-connector-python.lib.mysql.connector.aio.network.MySQLSocket.is_connected() -> boolCheck if the socket is connected.
method
mysql-connector-python.lib.mysql.connector.aio.network.MySQLSocket.open_connection(**kwargs:Any) -> NoneOpen the socket.
method
mysql-connector-python.lib.mysql.connector.aio.network.MySQLSocket.read(read_timeout:Optional[int]=None) -> bytearrayRead packets from the MySQL server.
method
mysql-connector-python.lib.mysql.connector.aio.network.MySQLSocket.set_connection_timeout(timeout:int) -> NoneSet the connection timeout.
class
mysql-connector-python.lib.mysql.connector.aio.network.MySQLTcpSocketMySQL socket class using TCP/IP.
method
mysql-connector-python.lib.mysql.connector.aio.network.MySQLTcpSocket.open_connection(**kwargs:Any) -> NoneOpen TCP/IP connection.
class
mysql-connector-python.lib.mysql.connector.aio.network.MySQLUnixSocketMySQL socket class using UNIX sockets.
method
mysql-connector-python.lib.mysql.connector.aio.network.MySQLUnixSocket.open_connection(**kwargs:Any) -> NoneOpen UNIX socket connection.
class
mysql-connector-python.lib.mysql.connector.aio.network.NetworkBrokerBroker class interface.
method
mysql-connector-python.lib.mysql.connector.aio.network.NetworkBroker.write(writer:StreamWriter, address:str, payload:bytes, packet_number:Optional[int]=None, compressed_packet_number:Optional[int]=None, write_timeout:Optional[int]=None) -> NoneSend `payload` to the MySQL server.
class
mysql-connector-python.lib.mysql.connector.aio.network.NetworkBrokerPlainBroker class for MySQL socket communication.
method
mysql-connector-python.lib.mysql.connector.aio.network.NetworkBrokerPlain.get_header(pkt:bytes) -> Tuple[int, int]Recover the header information from a packet.
class
mysql-connector-python.lib.mysql.connector.aio.plugins.MySQLAuthPluginAuthorization plugin interface.
method
mysql-connector-python.lib.mysql.connector.aio.plugins.MySQLAuthPlugin.auth_response(auth_data:bytes, **kwargs:Any) -> Optional[bytes]Make the client's authorization response.
method
mysql-connector-python.lib.mysql.connector.aio.plugins.MySQLAuthPlugin.name() -> strPlugin official name.
method
mysql-connector-python.lib.mysql.connector.aio.plugins.MySQLAuthPlugin.ssl_enabled() -> boolSignals whether or not SSL is enabled.
class
mysql-connector-python.lib.mysql.connector.aio.pooling.MySQLConnectionPoolClass defining a pool of MySQL connections
method
mysql-connector-python.lib.mysql.connector.aio.pooling.MySQLConnectionPool.add_connection(cnx:Optional[MySQLConnectionAbstract]=None) -> NoneAdds a connection to the pool.
method
mysql-connector-python.lib.mysql.connector.aio.pooling.MySQLConnectionPool.can_reset_session() -> boolReturns whether to reset session.
func
mysql-connector-python.lib.mysql.connector.aio.pooling.connect(*args:Any, **kwargs:Any) -> Union[PooledMySQLConnection, MySQLConnectionAbstract]Creates a MySQL connection object.
class
mysql-connector-python.lib.mysql.connector.aio.protocol.MySQLProtocolImplements MySQL client/server protocol.
class
mysql-connector-python.lib.mysql.connector.authentication.MySQLAuthenticatorImplements the authentication phase.
class
mysql-connector-python.lib.mysql.connector.connection.MySQLConnectionConnection to a MySQL Server
method
mysql-connector-python.lib.mysql.connector.connection.MySQLConnection.commit() -> NoneCommit current transaction
method
mysql-connector-python.lib.mysql.connector.connection.MySQLConnection.connection_id() -> Optional[int]MySQL connection ID
method
mysql-connector-python.lib.mysql.connector.connection.MySQLConnection.consume_results() -> NoneConsume results
method
mysql-connector-python.lib.mysql.connector.connection.MySQLConnection.database() -> strGet the current database
method
mysql-connector-python.lib.mysql.connector.connection.MySQLConnection.info_query(query:str) -> Optional[RowType]Send a query which only returns 1 row
method
mysql-connector-python.lib.mysql.connector.connection.MySQLConnection.rollback() -> NoneRollback current transaction
method
mysql-connector-python.lib.mysql.connector.connection.MySQLConnection.set_allow_local_infile_in_path(path:str) -> NoneSet the path that user can upload files.
method
mysql-connector-python.lib.mysql.connector.connection.MySQLConnection.shutdown() -> NoneShut down connection to MySQL Server.
class
mysql-connector-python.lib.mysql.connector.constants.ClientFlagMySQL Client Flags.
class
mysql-connector-python.lib.mysql.connector.constants.FieldTypeMySQL Field Types.
method
mysql-connector-python.lib.mysql.connector.constants.FieldType.get_binary_types() -> List[int]Get the list of all binary types
method
mysql-connector-python.lib.mysql.connector.constants.FieldType.get_number_types() -> List[int]Get the list of all number types
method
mysql-connector-python.lib.mysql.connector.constants.FieldType.get_string_types() -> List[int]Get the list of all string types
method
mysql-connector-python.lib.mysql.connector.constants.FieldType.get_timestamp_types() -> List[int]Get the list of all timestamp types
class
mysql-connector-python.lib.mysql.connector.constants.RefreshOptionMySQL Refresh command options.
class
mysql-connector-python.lib.mysql.connector.constants.RefreshOptionMetaRefreshOption Metaclass.
class
mysql-connector-python.lib.mysql.connector.constants.ServerCmdMySQL Server Commands
class
mysql-connector-python.lib.mysql.connector.constants.ServerCmdMetaClientFlag Metaclass.
func
mysql-connector-python.lib.mysql.connector.constants.flag_is_set(flag:int, flags:int) -> boolChecks if the flag is set Returns boolean
method
mysql-connector-python.lib.mysql.connector.cursor.MySQLCursor.fetchall() -> List[RowType]Return all rows of a query result set.
method
mysql-connector-python.lib.mysql.connector.cursor.MySQLCursor.fetchone() -> Optional[RowType]Return next row of a query result set.
func
mysql-connector-python.lib.mysql.connector.cursor.MySQLCursor.remove_comments(match:re.Match) -> strRemove comments from INSERT statements.
class
mysql-connector-python.lib.mysql.connector.cursor.MySQLCursorBufferedCursor which fetches rows within execute()
class
mysql-connector-python.lib.mysql.connector.cursor.MySQLCursorDictCursor fetching rows as dictionaries.
class
mysql-connector-python.lib.mysql.connector.cursor.MySQLCursorPreparedCursor using MySQL Prepared Statements
func
mysql-connector-python.lib.mysql.connector.cursor.replace(matchobj:re.Match) -> bytesReplace pattern.
func
mysql-connector-python.lib.mysql.connector.cursor_cext.CMySQLCursor.remove_comments(match:re.Match) -> strRemove comments from INSERT statements.
class
mysql-connector-python.lib.mysql.connector.cursor_cext.CMySQLCursorBufferedCursor using C Extension buffering results
class
mysql-connector-python.lib.mysql.connector.cursor_cext.CMySQLCursorPreparedCursor using MySQL Prepared Statements
method
mysql-connector-python.lib.mysql.connector.cursor_cext.CMySQLCursorPrepared.reset(free:bool=True) -> NoneResets the prepared statement.
class
mysql-connector-python.lib.mysql.connector.cursor_cext.CMySQLCursorRawCursor using C Extension return raw results
class
mysql-connector-python.lib.mysql.connector.custom_types.HexLiteralClass holding MySQL hex literals
class
mysql-connector-python.lib.mysql.connector.django.base.DatabaseWrapperRepresent a database connection.
method
mysql-connector-python.lib.mysql.connector.django.base.DatabaseWrapper.display_name() -> strDisplay name.
method
mysql-connector-python.lib.mysql.connector.django.base.DatabaseWrapper.mysql_server_data() -> Dict[str, Any]Return MySQL server data.
method
mysql-connector-python.lib.mysql.connector.django.base.DatabaseWrapper.mysql_server_info() -> AnyReturn MySQL version.
method
mysql-connector-python.lib.mysql.connector.django.base.DatabaseWrapper.mysql_version() -> Tuple[int, ...]Return MySQL version.
method
mysql-connector-python.lib.mysql.connector.django.base.DatabaseWrapper.sql_mode() -> Set[str]Return SQL mode.
class
mysql-connector-python.lib.mysql.connector.django.base.DjangoMySQLConverterCustom converter for Django.
class
mysql-connector-python.lib.mysql.connector.django.features.DatabaseFeaturesDatabase Features Specification class.
class
mysql-connector-python.lib.mysql.connector.django.operations.DatabaseOperationsDatabase Operations class.
method
mysql-connector-python.lib.mysql.connector.django.operations.DatabaseOperations.value_to_db_datetime(value:Optional[datetime]) -> Optional[bytes]Convert value to MySQL DATETIME.
method
mysql-connector-python.lib.mysql.connector.django.operations.DatabaseOperations.value_to_db_time(value:Optional[time]) -> Optional[bytes]Convert value to MySQL TIME.
class
mysql-connector-python.lib.mysql.connector.errors.DatabaseErrorException for errors related to the database
class
mysql-connector-python.lib.mysql.connector.errors.ErrorException that is base class for all other error exceptions.
class
mysql-connector-python.lib.mysql.connector.errors.InterfaceErrorException for errors related to the interface
class
mysql-connector-python.lib.mysql.connector.errors.InternalErrorException for errors internal database errors
class
mysql-connector-python.lib.mysql.connector.errors.OperationalErrorException for errors related to the database's operation
class
mysql-connector-python.lib.mysql.connector.errors.PoolErrorException for errors relating to connection pooling
class
mysql-connector-python.lib.mysql.connector.errors.ProgrammingErrorException for errors programming errors
class
mysql-connector-python.lib.mysql.connector.errors.WarningException for important warnings
class
mysql-connector-python.lib.mysql.connector.network.MySQLSocketMySQL socket communication interface.
method
mysql-connector-python.lib.mysql.connector.network.MySQLSocket.address() -> strGet the location of the socket.
method
mysql-connector-python.lib.mysql.connector.network.MySQLSocket.close_connection() -> NoneClose the socket.
method
mysql-connector-python.lib.mysql.connector.network.MySQLSocket.open_connection() -> NoneOpen the socket.
method
mysql-connector-python.lib.mysql.connector.network.MySQLSocket.recv(read_timeout:Optional[int]=None) -> bytearrayGet packet from the MySQL server comm channel.
method
mysql-connector-python.lib.mysql.connector.network.MySQLSocket.set_connection_timeout(timeout:Optional[int]) -> NoneSet the connection timeout.
method
mysql-connector-python.lib.mysql.connector.network.MySQLSocket.shutdown() -> NoneShut down the socket before closing it.
method
mysql-connector-python.lib.mysql.connector.network.MySQLSocket.switch_to_ssl(ssl_context:Any, host:str) -> NoneUpgrade an existing connection to TLS.
class
mysql-connector-python.lib.mysql.connector.network.MySQLTCPSocketMySQL socket class using TCP/IP.
class
mysql-connector-python.lib.mysql.connector.network.MySQLUnixSocketMySQL socket class using UNIX sockets.
method
mysql-connector-python.lib.mysql.connector.network.MySQLUnixSocket.switch_to_ssl(*args:Any, **kwargs:Any) -> NoneSwitch the socket to use SSL.
class
mysql-connector-python.lib.mysql.connector.network.NetworkBrokerBroker class interface.
method
mysql-connector-python.lib.mysql.connector.network.NetworkBroker.recv(sock:socket.socket, address:str) -> bytearrayGet the next available packet from the MySQL server.
class
mysql-connector-python.lib.mysql.connector.network.NetworkBrokerPlainBroker class for MySQL socket communication.
method
mysql-connector-python.lib.mysql.connector.network.NetworkBrokerPlain.recv(sock:socket.socket, address:str) -> bytearrayReceive `one` packet from the MySQL server.
func
mysql-connector-python.lib.mysql.connector.opentelemetry.context_propagation.with_context_propagation(method:Callable) -> CallablePerform trace context propagation.
func
mysql-connector-python.lib.mysql.connector.opentelemetry.context_propagation.wrapper(cnx:'MySQLConnectionAbstract', *args:Any, **kwargs:Any) -> AnyContext propagation decorator.
func
mysql-connector-python.lib.mysql.connector.opentelemetry.instrumentation.end_span(span:trace.Span) -> NoneEnds span.
func
mysql-connector-python.lib.mysql.connector.opentelemetry.instrumentation.get_operation_name(operation:str) -> strParse query to extract operation name.
func
mysql-connector-python.lib.mysql.connector.opentelemetry.instrumentation.record_exception_event(span:trace.Span, exc:Optional[Exception]) -> NoneRecords an exeception event.
func
mysql-connector-python.lib.mysql.connector.opentelemetry.instrumentation.wrapper(cnx:'MySQLConnectionAbstract', *args:Any, **kwargs:Any) -> AnyConnection span attacher decorator.
func
mysql-connector-python.lib.mysql.connector.optionfiles.read_option_files(**config:Union[str, List[str]]) -> Dict[str, Any]Read option files for connection parameters.
class
mysql-connector-python.lib.mysql.connector.plugins.MySQLAuthPluginAuthorization plugin interface.
method
mysql-connector-python.lib.mysql.connector.plugins.MySQLAuthPlugin.auth_response(auth_data:bytes, **kwargs:Any) -> Optional[bytes]Make the client's authorization response.
method
mysql-connector-python.lib.mysql.connector.plugins.MySQLAuthPlugin.name() -> strPlugin official name.
method
mysql-connector-python.lib.mysql.connector.plugins.MySQLAuthPlugin.requires_ssl() -> boolSignals whether or not SSL is required.
method
mysql-connector-python.lib.mysql.connector.plugins.MySQLAuthPlugin.ssl_enabled() -> boolSignals whether or not SSL is enabled.
class
mysql-connector-python.lib.mysql.connector.pooling.MySQLConnectionPoolClass defining a pool of MySQL connections
method
mysql-connector-python.lib.mysql.connector.pooling.MySQLConnectionPool.add_connection(cnx:Optional[MySQLConnectionAbstract]=None) -> NoneAdds a connection to the pool.
method
mysql-connector-python.lib.mysql.connector.pooling.MySQLConnectionPool.get_connection() -> PooledMySQLConnectionGets a connection from the pool.
method
mysql-connector-python.lib.mysql.connector.pooling.MySQLConnectionPool.reset_session() -> boolReturns whether to reset session.
func
mysql-connector-python.lib.mysql.connector.pooling.connect(*args:Any, **kwargs:Any) -> Union[PooledMySQLConnection, MySQLConnectionAbstract]Creates or gets a MySQL connection object.
method
mysql-connector-python.lib.mysql.connector.protocol.MySQLProtocol.make_command(command:int, argument:Optional[bytes]=None) -> bytesMake a MySQL packet containing a command
method
mysql-connector-python.lib.mysql.connector.protocol.MySQLProtocol.make_conn_attrs(conn_attrs:Dict[str, str]) -> bytesEncode the connection attributes.
method
mysql-connector-python.lib.mysql.connector.protocol.MySQLProtocol.parse_auth_more_data(pkt:bytes) -> bytesParse a MySQL auth more data packet.
method
mysql-connector-python.lib.mysql.connector.protocol.MySQLProtocol.parse_auth_next_factor(pkt:bytes) -> Tuple[str, bytes]Parse a MySQL auth next factor packet.
method
mysql-connector-python.lib.mysql.connector.protocol.MySQLProtocol.parse_auth_switch_request(pkt:bytes) -> Tuple[str, bytes]Parse a MySQL auth switch request packet.
method
mysql-connector-python.lib.mysql.connector.protocol.MySQLProtocol.parse_binary_prepare_ok(packet:bytes) -> Dict[str, int]Parse a MySQL Binary Protocol OK packet.
method
mysql-connector-python.lib.mysql.connector.protocol.MySQLProtocol.parse_column(packet:bytes, encoding:str='utf-8') -> DescriptionTypeParse a MySQL column-packet.
method
mysql-connector-python.lib.mysql.connector.protocol.MySQLProtocol.parse_eof(packet:bytes) -> EofPacketTypeParse a MySQL EOF-packet
method
mysql-connector-python.lib.mysql.connector.protocol.MySQLProtocol.parse_handshake(packet:bytes) -> HandShakeTypeParse a MySQL Handshake-packet.
method
mysql-connector-python.lib.mysql.connector.protocol.MySQLProtocol.parse_ok(packet:bytes) -> OkPacketTypeParse a MySQL OK-packet
method
mysql-connector-python.lib.mysql.connector.protocol.MySQLProtocol.parse_statistics(packet:bytes, with_header:bool=True) -> StatsPacketTypeParse the statistics packet
class
mysql-connector-python.lib.mysql.connector.types.MySQLScriptPartitionRepresents a partition or sub-script.
func
mysql-connector-python.lib.mysql.connector.utils.import_object(fullpath:str) -> AnyImport an object from a fully qualified module path.
func
mysql-connector-python.lib.mysql.connector.utils.init_bytearray(payload:Union[int, StrOrBytes]=b'', encoding:str='utf-8') -> bytearrayInitialize a bytearray from the payload.
func
mysql-connector-python.lib.mysql.connector.utils.int8store(i:int) -> bytesTakes an unsigned integer (8 bytes) and packs it as string.
func
mysql-connector-python.lib.mysql.connector.utils.intread(buf:Union[int, bytes]) -> intUnpacks the given buffer to an integer
func
mysql-connector-python.lib.mysql.connector.utils.intstore(i:int) -> bytesTakes an unsigned integers and packs it as a bytes-object.
func
mysql-connector-python.lib.mysql.connector.utils.read_bytes(buf:bytes, size:int) -> Tuple[bytes, bytes]Reads bytes from a buffer.
func
mysql-connector-python.support.django.run_django_tests.main()Start application
class
mysql-connector-python.unittests.BasicTestResultBasic test result
method
mysql-connector-python.unittests.BasicTestResult.addSkip(test, reason)Save skipped reasons
class
mysql-connector-python.unittests.BasicTestRunnerBasic test runner
class
mysql-connector-python.unittests.StatsTestResultStore test results in a database
class
mysql-connector-python.unittests.StatsTestRunnerCommitting results test results
func
mysql-connector-python.unittests.init_mysql_server(port, options)Initialize a MySQL Server
func
mysql-connector-python.unittests.warnings_filter(record)Filter out warnings.
class
mysqlx-connector-python.cpydist.BaseCommandBase command class for Connector/Python.
method
mysqlx-connector-python.cpydist.BaseCommand.finalize_options()Finalize the options.
method
mysqlx-connector-python.cpydist.BaseCommand.initialize_options()Initialize the options.
method
mysqlx-connector-python.cpydist.BaseCommand.remove_temp()Remove temporary build files.
method
mysqlx-connector-python.cpydist.BuildExt.finalize_options()Finalize the options.
method
mysqlx-connector-python.cpydist.BuildExt.initialize_options()Initialize the options.
method
mysqlx-connector-python.cpydist.BuildExt.run()Run the command.
class
mysqlx-connector-python.cpydist.InstallInstall Connector/Python implementation.
method
mysqlx-connector-python.cpydist.Install.finalize_options()Finalize the options.
method
mysqlx-connector-python.cpydist.Install.initialize_options()Initialize the options.
class
mysqlx-connector-python.cpydist.InstallLibInstallLib Connector/Python implementation.
method
mysqlx-connector-python.cpydist.InstallLib.finalize_options()Finalize the options.
method
mysqlx-connector-python.cpydist.InstallLib.initialize_options()Initialize the options.
method
mysqlx-connector-python.cpydist.InstallLib.run()Run the command.
class
mysqlx-connector-python.cpydist.bdist.DistBinaryCreate a generic binary distribution.
method
mysqlx-connector-python.cpydist.bdist.DistBinary.finalize_options()Finalize the options.
method
mysqlx-connector-python.cpydist.bdist.DistBinary.initialize_options()Initialize the options.
method
mysqlx-connector-python.cpydist.bdist.DistBinary.run()Run the command.
class
mysqlx-connector-python.cpydist.bdist_wheel.DistWheelCreate a Wheel distribution.
method
mysqlx-connector-python.cpydist.bdist_wheel.DistWheel.finalize_options()Finalize the options.
method
mysqlx-connector-python.cpydist.bdist_wheel.DistWheel.run()Run the command.
class
mysqlx-connector-python.cpydist.sdist.DistSourceCreate a generic source distribution.
method
mysqlx-connector-python.cpydist.sdist.DistSource.finalize_options()Finalize the options.
method
mysqlx-connector-python.cpydist.sdist.DistSource.initialize_options()Initialize the options.
method
mysqlx-connector-python.cpydist.sdist.DistSource.run()Run the command.
func
mysqlx-connector-python.cpydist.utils.unarchive_targz(tarball)Unarchive a tarball.
func
mysqlx-connector-python.cpydist.utils.write_info_bin(mysql_version=None, compiler=None)Generate docs/INFO_BIN.
func
mysqlx-connector-python.cpydist.utils.write_info_src(version)Generate docs/INFO_SRC.
method
mysqlx-connector-python.lib.mysqlx.connection.Client.close() -> NoneCloses the sessions opened by this client.
class
mysqlx-connector-python.lib.mysqlx.connection.ConnectionConnection to a MySQL Server.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.close_result(result:Result) -> NoneClose result.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.close_session() -> NoneClose a sucessfully authenticated session.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.connect() -> NoneAttempt to connect to the MySQL server.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.disconnect() -> NoneDisconnect from server.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.execute_nonquery(namespace:str, cmd:str, raise_on_fail:bool, fields:Optional[Dict[str, Any]]=None) -> Optional[Result]Execute a non query command.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.execute_sql_scalar(sql:StatementType) -> intExecute a SQL scalar.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.fetch_active_result() -> NoneFetch active result.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.get_column_metadata(result:Result) -> List[ColumnType]Get column metadata.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.get_next_statement_id() -> intReturns the next statement ID.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.get_row_result(cmd:str, fields:Dict[str, Any]) -> RowResultReturns the row result.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.is_open() -> boolCheck if connection is open.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.read_row(result:RowResult) -> Optional[MessageType]Read row.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.reset_session() -> NoneReset a sucessfully authenticated session.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.send_delete(statement:Union[DeleteStatement, RemoveStatement]) -> ResultSend an delete statement.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.send_find(statement:Union[FindStatement, SelectStatement]) -> Union[DocResult, RowResult]Send an find statement.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.send_insert(statement:Union[AddStatement, InsertStatement]) -> ResultSend an insert statement.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.send_sql(statement:SqlStatement) -> SqlResultExecute a SQL statement.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.send_update(statement:Union[ModifyStatement, UpdateStatement]) -> ResultSend an delete statement.
method
mysqlx-connector-python.lib.mysqlx.connection.Connection.set_active_result(result:ResultBaseType) -> NoneSet active result.
class
mysqlx-connector-python.lib.mysqlx.connection.ConnectionPoolThis class represents a pool of connections.
method
mysqlx-connector-python.lib.mysqlx.connection.ConnectionPool.add_connection(cnx:Optional[PooledConnection]=None) -> NoneAdds a connection to this pool.
method
mysqlx-connector-python.lib.mysqlx.connection.ConnectionPool.close() -> NoneEmpty this ConnectionPool.
method
mysqlx-connector-python.lib.mysqlx.connection.ConnectionPool.remove_connection(cnx:Optional[PooledConnection]=None) -> NoneRemoves a connection from this pool.
method
mysqlx-connector-python.lib.mysqlx.connection.ConnectionPool.remove_connections() -> NoneRemoves all the connections from the pool.
method
mysqlx-connector-python.lib.mysqlx.connection.PooledConnection.close_connection() -> NoneCloses the connection.
method
mysqlx-connector-python.lib.mysqlx.connection.PooledConnection.reconnect() -> NoneReconnect this connection.
method
mysqlx-connector-python.lib.mysqlx.connection.PooledConnection.reset() -> NoneReset the connection.
class
mysqlx-connector-python.lib.mysqlx.connection.RouterRepresents a set of connection parameters.
method
mysqlx-connector-python.lib.mysqlx.connection.Session.close() -> NoneCloses the session.
method
mysqlx-connector-python.lib.mysqlx.connection.Session.drop_schema(name:str) -> NoneDrops the schema with the specified name.
method
mysqlx-connector-python.lib.mysqlx.connection.Session.get_connection() -> ConnectionReturns the underlying connection.
method
mysqlx-connector-python.lib.mysqlx.connection.Session.is_open() -> boolReturns `True` if the session is open.
method
mysqlx-connector-python.lib.mysqlx.connection.Session.release_savepoint(name:str) -> NoneRelease a transaction savepoint with the given name.
method
mysqlx-connector-python.lib.mysqlx.connection.Session.rollback_to(name:str) -> NoneRollback to a transaction savepoint with the given name.
method
mysqlx-connector-python.lib.mysqlx.connection.Session.set_savepoint(name:Optional[str]=None) -> strCreates a transaction savepoint.
class
mysqlx-connector-python.lib.mysqlx.connection.SocketStreamImplements a socket stream.
method
mysqlx-connector-python.lib.mysqlx.connection.SocketStream.close() -> NoneClose the socket.
method
mysqlx-connector-python.lib.mysqlx.connection.SocketStream.connect(params:Tuple, connect_timeout:float=_CONNECT_TIMEOUT) -> NoneConnects to a TCP service.
method
mysqlx-connector-python.lib.mysqlx.connection.SocketStream.is_open() -> boolVerifies if connection is open.
method
mysqlx-connector-python.lib.mysqlx.connection.SocketStream.is_secure() -> boolVerifies if connection is secure.
method
mysqlx-connector-python.lib.mysqlx.connection.SocketStream.is_ssl() -> boolVerifies if SSL is being used.
method
mysqlx-connector-python.lib.mysqlx.connection.SocketStream.read(count:int) -> bytesReceive data from the socket.
method
mysqlx-connector-python.lib.mysqlx.connection.SocketStream.sendall(data:bytes) -> NoneSend data to the socket.
method
mysqlx-connector-python.lib.mysqlx.connection.SocketStream.set_ssl(ssl_protos:List[str], ssl_mode:str, ssl_ca:str, ssl_crl:str, ssl_cert:str, ssl_key:str, ssl_ciphers:List[str]) -> NoneSet SSL parameters.
func
mysqlx-connector-python.lib.mysqlx.connection.catch_network_exception(func:Callable) -> CallableDecorator used to catch OSError or RuntimeError.
func
mysqlx-connector-python.lib.mysqlx.connection.generate_pool_name(**kwargs:Any) -> strGenerate a pool name.
func
mysqlx-connector-python.lib.mysqlx.connection.update_timeout_penalties_by_error(penalty_dict:Mapping[str, Any]) -> NoneUpdate the timeout penalties directory.
func
mysqlx-connector-python.lib.mysqlx.connection.wrapper(self:Any, *args:Any, **kwargs:Any) -> AnyWrapper function.
class
mysqlx-connector-python.lib.mysqlx.constants.AuthEnum to identify the authentication mechanisms.
class
mysqlx-connector-python.lib.mysqlx.constants.CompressionEnum to identify the compression options.
class
mysqlx-connector-python.lib.mysqlx.constants.LockContentionEnum to identify the row locking modes.
class
mysqlx-connector-python.lib.mysqlx.constants.SSLModeEnum to identify the SSL modes.
class
mysqlx-connector-python.lib.mysqlx.crud.CollectionRepresents a collection of documents on a schema.
method
mysqlx-connector-python.lib.mysqlx.crud.Collection.add(*values:DbDoc) -> AddStatementAdds a list of documents to a collection.
method
mysqlx-connector-python.lib.mysqlx.crud.Collection.count() -> intCounts the documents in the collection.
method
mysqlx-connector-python.lib.mysqlx.crud.Collection.create_index(index_name:str, fields_desc:Dict[str, Any]) -> CreateCollectionIndexStatementCreates a collection index.
method
mysqlx-connector-python.lib.mysqlx.crud.Collection.drop_index(index_name:str) -> NoneDrops a collection index.
method
mysqlx-connector-python.lib.mysqlx.crud.Collection.find(condition:Optional[str]=None) -> FindStatementRetrieves documents from a collection.
method
mysqlx-connector-python.lib.mysqlx.crud.Collection.get_one(doc_id:str) -> DbDocReturns a Document matching the Document ID.
method
mysqlx-connector-python.lib.mysqlx.crud.Collection.modify(condition:str) -> ModifyStatementModifies documents based on the ``condition``.
method
mysqlx-connector-python.lib.mysqlx.crud.Collection.remove(condition:str) -> RemoveStatementRemoves documents based on the ``condition``.
method
mysqlx-connector-python.lib.mysqlx.crud.Collection.remove_one(doc_id:str) -> 'Result'Removes a Document matching the Document ID.
class
mysqlx-connector-python.lib.mysqlx.crud.DatabaseObjectProvides base functionality for database objects.
method
mysqlx-connector-python.lib.mysqlx.crud.DatabaseObject.get_connection() -> ConnectionTypeReturns the underlying connection.
method
mysqlx-connector-python.lib.mysqlx.crud.DatabaseObject.get_name() -> strReturns the name of this database object.
method
mysqlx-connector-python.lib.mysqlx.crud.DatabaseObject.name() -> strstr: The name of this database object.
method
mysqlx-connector-python.lib.mysqlx.crud.DatabaseObject.schema() -> SchemaType:class:`mysqlx.Schema`: The Schema object.
method
mysqlx-connector-python.lib.mysqlx.crud.DatabaseObject.who_am_i() -> strReturns the name of this database object.
class
mysqlx-connector-python.lib.mysqlx.crud.SchemaA client-side representation of a database schema.
method
mysqlx-connector-python.lib.mysqlx.crud.Schema.drop_collection(name:str) -> NoneDrops a collection.
method
mysqlx-connector-python.lib.mysqlx.crud.Schema.get_table(name:str, check_existence:bool=False) -> TableReturns the table of the given name for this schema.
method
mysqlx-connector-python.lib.mysqlx.crud.Schema.get_tables() -> List[Table]Returns a list of tables for this schema.
method
mysqlx-connector-python.lib.mysqlx.crud.Schema.get_view(name:str, check_existence:bool=False) -> ViewReturns the view of the given name for this schema.
class
mysqlx-connector-python.lib.mysqlx.crud.TableRepresents a database table on a schema.
method
mysqlx-connector-python.lib.mysqlx.crud.Table.count() -> intCounts the rows in the table.
method
mysqlx-connector-python.lib.mysqlx.crud.Table.insert(*fields:Any) -> InsertStatementCreates a new :class:`mysqlx.InsertStatement` object.
method
mysqlx-connector-python.lib.mysqlx.crud.Table.select(*fields:str) -> SelectStatementCreates a new :class:`mysqlx.SelectStatement` object.
method
mysqlx-connector-python.lib.mysqlx.crud.Table.update() -> UpdateStatementCreates a new :class:`mysqlx.UpdateStatement` object.
class
mysqlx-connector-python.lib.mysqlx.crud.ViewRepresents a database view on a schema.
class
mysqlx-connector-python.lib.mysqlx.dbdoc.DbDocRepresents a generic document in JSON format.
method
mysqlx-connector-python.lib.mysqlx.dbdoc.DbDoc.keys() -> KeysView[str]Returns the keys.
class
mysqlx-connector-python.lib.mysqlx.errors.DatabaseErrorException for errors related to the database.
class
mysqlx-connector-python.lib.mysqlx.errors.ErrorException that is base class for all other error exceptions.
class
mysqlx-connector-python.lib.mysqlx.errors.InterfaceErrorException for errors related to the interface.
class
mysqlx-connector-python.lib.mysqlx.errors.InternalErrorException for errors internal database errors.
class
mysqlx-connector-python.lib.mysqlx.errors.PoolErrorException for errors relating to connection pooling.
class
mysqlx-connector-python.lib.mysqlx.errors.ProgrammingErrorException for errors programming errors.
About this data
These signatures were extracted from the public source of mysql/mysql-connector-python
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.