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: 'str' = '', oci_config_profile: 'str' = '', openid_token_file: 'str' = '') -> 'Optional[OkPacketType]' |
Change the current logged in user [extrait de cmd_change_user.__doc__] |
cmd_debug(self) -> 'EofPacketType' |
Send the DEBUG command [extrait de cmd_debug.__doc__] |
cmd_init_db(self, database: 'str') -> 'OkPacketType' |
Change the current database [extrait de cmd_init_db.__doc__] |
cmd_ping(self) -> 'OkPacketType' |
Send the PING command [extrait de cmd_ping.__doc__] |
cmd_process_kill(self, mysql_pid: 'int') -> 'OkPacketType' |
Kill a MySQL process [extrait de cmd_process_kill.__doc__] |
cmd_query_iter(self, statements: 'StrOrBytes', **kwargs: 'Any') -> 'Generator[ResultType, None, None]' |
Send one or more statements to the MySQL server [extrait de cmd_query_iter.__doc__] |
cmd_quit(self) -> 'bytes' |
Close the current connection with the server [extrait de cmd_quit.__doc__] |
cmd_refresh(self, options: 'int') -> 'OkPacketType' |
|
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) -> 'StatsPacketType' |
Send the statistics command to the MySQL Server [extrait de cmd_statistics.__doc__] |
cmd_stmt_close(self, statement_id: 'int', **kwargs: 'Any') -> 'None' |
Deallocate a prepared MySQL statement [extrait de cmd_stmt_close.__doc__] |
cmd_stmt_fetch(self, statement_id: 'int', rows: 'int' = 1, **kwargs: 'Any') -> 'None' |
Fetch a MySQL statement Result Set [extrait de cmd_stmt_fetch.__doc__] |
cmd_stmt_prepare(self, statement: 'bytes', **kwargs: 'Any') -> 'Mapping[str, Union[int, List[DescriptionType]]]' |
Prepare a MySQL statement [extrait de cmd_stmt_prepare.__doc__] |
cmd_stmt_reset(self, statement_id: 'int', **kwargs: 'Any') -> 'None' |
Reset data for prepared statement sent as long data [extrait de cmd_stmt_reset.__doc__] |
cmd_stmt_send_long_data(self, statement_id: 'int', param_id: 'int', data: 'BinaryIO', **kwargs: 'Any') -> 'int' |
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 results [extrait de consume_results.__doc__] |
cursor(self, buffered: 'Optional[bool]' = None, raw: 'Optional[bool]' = None, prepared: 'Optional[bool]' = None, cursor_class: 'Optional[Type[MySQLCursor]]' = None, dictionary: 'Optional[bool]' = None, named_tuple: 'Optional[bool]' = None, read_timeout: 'Optional[int]' = None, write_timeout: 'Optional[int]' = None) -> 'MySQLCursor' |
Instantiates and returns a cursor [extrait de cursor.__doc__] |
disconnect(self) -> 'None' |
Disconnect from the MySQL server [extrait de close.__doc__] |
get_row(self, binary: 'bool' = False, columns: 'Optional[List[DescriptionType]]' = None, raw: 'Optional[bool]' = None, prep_stmt: 'Optional[CMySQLPrepStmt]' = None, **kwargs: 'Any') -> 'Tuple[Optional[RowType], Optional[EofPacketType]]' |
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[DescriptionType]]' = None, raw: 'Optional[bool]' = None, prep_stmt: 'Optional[CMySQLPrepStmt]' = None, **kwargs: 'Any') -> 'Tuple[List[RowType], Optional[EofPacketType]]' |
Get all rows returned by the MySQL server [extrait de get_rows.__doc__] |
handle_unread_result(self) -> 'None' |
Check whether there is an unread result [extrait de handle_unread_result.__doc__] |
info_query(self, query: 'str') -> 'Optional[RowType]' |
Send a query which only returns 1 row [extrait de info_query.__doc__] |
is_connected(self) -> 'bool' |
Reports whether the connection to MySQL Server is available [extrait de is_connected.__doc__] |
ping(self, reconnect: 'bool' = False, attempts: 'int' = 1, delay: 'int' = 0) -> 'None' |
Check availability of the MySQL server [extrait de ping.__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 the path that user can upload files. [extrait de set_allow_local_infile_in_path.__doc__] |
shutdown(self) -> 'None' |
Shut down connection to MySQL Server. [extrait de shutdown.__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 :