close(self) -> None |
Disconnect from the MySQL server [extrait de close.__doc__] |
cmd_change_user(self, username: str = '', password: str = '', database: str = '', charset: Optional[int] = None, password1: str = '', password2: str = '', password3: str = '', oci_config_file: Optional[str] = None, oci_config_profile: Optional[str] = None, openid_token_file: Optional[str] = None) -> None |
Change the current logged in user [extrait de cmd_change_user.__doc__] |
cmd_debug(self) -> NoReturn |
Send the DEBUG command [extrait de cmd_debug.__doc__] |
cmd_init_db(self, database: str) -> None |
Change the current database [extrait de cmd_init_db.__doc__] |
cmd_ping(self) -> NoReturn |
Send the PING command [extrait de cmd_ping.__doc__] |
cmd_process_kill(self, mysql_pid: int) -> None |
Kill a MySQL process [extrait de cmd_process_kill.__doc__] |
cmd_query_iter(self, statements: str, **kwargs: Any) -> NoReturn |
Send one or more statements to the MySQL server [extrait de cmd_query_iter.__doc__] |
cmd_quit(self) -> None |
Close the current connection with the server [extrait de cmd_quit.__doc__] |
cmd_refresh(self, options: int) -> Optional[Dict[str, int]] |
|
cmd_reset_connection(self) -> bool |
Resets the session state without re-authenticating [extrait de cmd_reset_connection.__doc__] |
cmd_shutdown(self, shutdown_type: Optional[int] = None) -> None |
Shut down the MySQL Server [extrait de cmd_shutdown.__doc__] |
cmd_statistics(self) -> Dict[str, Union[int, decimal.Decimal]] |
Return statistics from the MySQL server [extrait de cmd_statistics.__doc__] |
cmd_stmt_close(self, statement_id: mysql.connector.abstracts.CMySQLPrepStmt, **kwargs: Any) -> None |
Closes the prepared statement [extrait de cmd_stmt_close.__doc__] |
cmd_stmt_prepare(self, statement: bytes, **kwargs: Any) -> mysql.connector.abstracts.CMySQLPrepStmt |
Prepares the SQL statement [extrait de cmd_stmt_prepare.__doc__] |
cmd_stmt_reset(self, statement_id: mysql.connector.abstracts.CMySQLPrepStmt, **kwargs: Any) -> None |
Resets the prepared statement [extrait de cmd_stmt_reset.__doc__] |
cmd_stmt_send_long_data(self, statement_id: mysql.connector.abstracts.CMySQLPrepStmt, param_id: int, data: <class 'BinaryIO'>, **kwargs: Any) -> NoReturn |
Send data for a column [extrait de cmd_stmt_send_long_data.__doc__] |
commit(self) -> None |
Commit current transaction [extrait de commit.__doc__] |
consume_results(self) -> None |
Consume the current result [extrait de consume_results.__doc__] |
cursor(self, buffered: Optional[bool] = None, raw: Optional[bool] = None, prepared: Optional[bool] = None, cursor_class: Optional[Type[mysql.connector.cursor_cext.CMySQLCursor]] = None, dictionary: Optional[bool] = None, named_tuple: Optional[bool] = None, read_timeout: Optional[int] = None, write_timeout: Optional[int] = None) -> mysql.connector.cursor_cext.CMySQLCursor |
Instantiates and returns a cursor using C Extension [extrait de cursor.__doc__] |
disconnect(self) -> None |
Disconnect from the MySQL server [extrait de close.__doc__] |
fetch_eof_columns(self, prep_stmt: Optional[mysql.connector.abstracts.CMySQLPrepStmt] = None) -> Dict[str, Union[Dict[str, int], List[Tuple[str, int, NoneType, NoneType, NoneType, NoneType, Union[bool, int], int, int]]]] |
Fetch EOF and column information [extrait de fetch_eof_columns.__doc__] |
fetch_eof_status(self) -> Optional[Dict[str, int]] |
Fetch EOF and status information [extrait de fetch_eof_status.__doc__] |
free_result(self) -> None |
Frees the result [extrait de free_result.__doc__] |
get_row(self, binary: bool = False, columns: Optional[List[Tuple[str, int, NoneType, NoneType, NoneType, NoneType, Union[bool, int], int, int]]] = None, raw: Optional[bool] = None, prep_stmt: Optional[mysql.connector.abstracts.CMySQLPrepStmt] = None, **kwargs: Any) -> Tuple[Optional[Tuple[Union[decimal.Decimal, bytes, datetime.date, datetime.datetime, float, int, Set[str], str, datetime.timedelta, NoneType, datetime.time], ...]], Optional[Dict[str, int]]] |
Get the next rows returned by the MySQL server [extrait de get_row.__doc__] |
get_rows(self, count: Optional[int] = None, binary: bool = False, columns: Optional[List[Tuple[str, int, NoneType, NoneType, NoneType, NoneType, Union[bool, int], int, int]]] = None, raw: Optional[bool] = None, prep_stmt: Optional[mysql.connector.abstracts.CMySQLPrepStmt] = None, **kwargs: Any) -> Tuple[List[Tuple[Union[decimal.Decimal, bytes, datetime.date, datetime.datetime, float, int, Set[str], str, datetime.timedelta, NoneType, datetime.time], ...]], Optional[Dict[str, int]]] |
Get all or a subset of rows returned by the MySQL server [extrait de get_rows.__doc__] |
handle_unread_result(self, prepared: bool = False) -> None |
Check whether there is an unread result [extrait de handle_unread_result.__doc__] |
info_query(self, query: Union[str, bytes]) -> Optional[Tuple[Union[decimal.Decimal, bytes, datetime.date, datetime.datetime, float, int, Set[str], str, datetime.timedelta, NoneType, datetime.time], ...]] |
Send a query which only returns 1 row [extrait de info_query.__doc__] |
is_closed(self) -> bool |
Return True if the connection to MySQL Server is closed. [extrait de is_closed.__doc__] |
is_connected(self) -> bool |
Reports whether the connection to MySQL Server is available [extrait de is_connected.__doc__] |
next_result(self) -> Optional[bool] |
Reads the next result [extrait de next_result.__doc__] |
ping(self, reconnect: bool = False, attempts: int = 1, delay: int = 0) -> None |
Check availability of the MySQL server [extrait de ping.__doc__] |
prepare_for_mysql(self, params: Union[Dict[str, Union[decimal.Decimal, bytes, datetime.date, datetime.datetime, float, int, str, datetime.time, datetime.timedelta, NoneType, bool, time.struct_time]], Sequence[Union[decimal.Decimal, bytes, datetime.date, datetime.datetime, float, int, str, datetime.time, datetime.timedelta, NoneType, bool, time.struct_time]]]) -> Union[Sequence[bytes], Dict[bytes, bytes]] |
Prepare parameters for statements [extrait de prepare_for_mysql.__doc__] |
reset_session(self, user_variables: Optional[Dict[str, Any]] = None, session_variables: Optional[Dict[str, Any]] = None) -> None |
Clears the current active session [extrait de reset_session.__doc__] |
rollback(self) -> None |
Rollback current transaction [extrait de rollback.__doc__] |
set_allow_local_infile_in_path(self, path: str) -> None |
set local_infile_in_path [extrait de set_allow_local_infile_in_path.__doc__] |
set_character_set_name(self, charset: str) -> None |
Sets the default character set name for current connection. [extrait de set_character_set_name.__doc__] |
set_unicode(self, value: bool = True) -> None |
Toggle unicode mode [extrait de set_unicode.__doc__] |
Améliorations / Corrections
Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.
Emplacement :
Description des améliorations :