MCPcopy Index your code

hub / github.com/mysql/mysql-connector-python / functions

Functions5,006 in github.com/mysql/mysql-connector-python

↓ 4 callersMethod_handle_server_status
(self, flags: int)
mysql-connector-python/lib/mysql/connector/aio/cursor.py:1078
↓ 4 callersMethod_llm_hello_world
( self, conn: MySQLConnectionAbstract, prompt: str = "Hello world", options: O
mysql-connector-python/tests/ai/genai/test_generation.py:52
↓ 4 callersMethod_load_model
Loads the model specified by `self.model_name` into MySQL. After loading, the model is ready to handle ML operations. Refere
mysql-connector-python/lib/mysql/ai/ml/model.py:251
↓ 4 callersMethod_normalize
(string: str)
mysql-connector-python/lib/mysql/connector/aio/plugins/authentication_ldap_sasl_client.py:119
↓ 4 callersMethod_normalize
(string: str)
mysql-connector-python/lib/mysql/connector/plugins/authentication_ldap_sasl_client.py:119
↓ 4 callersMethod_prepare_packets
Prepare a payload for sending to the MySQL server.
mysql-connector-python/lib/mysql/connector/network.py:262
↓ 4 callersMethod_process_params
Process query parameters.
mysql-connector-python/lib/mysql/connector/cursor.py:296
↓ 4 callersMethod_process_params_dict
Process query parameters given as dictionary
mysql-connector-python/lib/mysql/connector/cursor.py:273
↓ 4 callersMethod_reset_result
Reset the cursor to default. Args: preserve_last_executed_stmt: If it is False, the last executed
mysql-connector-python/lib/mysql/connector/aio/cursor.py:332
↓ 4 callersMethod_send_pkt
Write packet to the comm channel.
mysql-connector-python/lib/mysql/connector/network.py:162
↓ 4 callersMethod_test_connection
Test a MySQL connection. Try to connect to a MySQL server using a specified connection class and config.
mysql-connector-python/tests/test_authentication.py:608
↓ 4 callersMethod_test_connection
Test a MySQL connection. Try to connect to a MySQL server using a specified connection class and config.
mysql-connector-python/tests/test_aio_authentication.py:569
↓ 4 callersMethod_test_execute
( self, map_results: bool, use_executemulti: bool = False, **cursor_config: Any )
mysql-connector-python/tests/qa/test_qa_multi_statement.py:842
↓ 4 callersMethod_write_pkt
Write packet to the comm channel.
mysql-connector-python/lib/mysql/connector/aio/network.py:192
↓ 4 callersMethodassertGreater
(self, a, b, msg=None)
mysql-connector-python/tests/__init__.py:730
↓ 4 callersMethodbuild_execute_statement
Build execute statement. Args: namespace (str): The namespace. stmt (Statement): A `Statement` based type object.
mysqlx-connector-python/lib/mysqlx/protocol.py:995
↓ 4 callersMethodcharacter_set_name
str: The character set name. .. versionadded:: 8.0.12
mysqlx-connector-python/lib/mysqlx/result.py:682
↓ 4 callersMethodcheck_call
(self, expected_calls: List[Tuple[str, list]])
mysql-connector-python/tests/ai/genai/test_vector_store.py:108
↓ 4 callersMethodclose
Close the cursor The result will be freed.
mysql-connector-python/lib/mysql/connector/cursor_cext.py:505
↓ 4 callersMethodclose_pool
Cleans up the connection pool This public method gracefully shuts down the connection pool by disconnecting all of the open connection
mysql-connector-python/lib/mysql/connector/aio/pooling.py:677
↓ 4 callersMethodcmd_change_user
Change the current logged in user
mysql-connector-python/lib/mysql/connector/connection_cext.py:971
↓ 4 callersMethodcmd_quit
Close the current connection with the server This method sends the `QUIT` command to the MySQL server, closing the current connection
mysql-connector-python/lib/mysql/connector/connection.py:1094
↓ 4 callersMethoddelete_all
Delete and drop the entire vector store table. Returns: None
mysql-connector-python/lib/mysql/ai/genai/vector_store.py:218
↓ 4 callersFunctiondelete_sql_table
Drop a table from the SQL database if it exists. Args: cursor: MySQLCursorAbstract to execute the drop command. schema_name:
mysql-connector-python/lib/mysql/ai/utils/utils.py:310
↓ 4 callersMethodescape
Escapes special characters as they are expected to by when MySQL receives them. As found in MySQL source mysys/charset.c
mysql-connector-python/lib/mysql/connector/conversion.py:189
↓ 4 callersMethodfetch_active_result
Fetch active result.
mysqlx-connector-python/lib/mysqlx/connection.py:752
↓ 4 callersMethodfetch_eof_status
Fetch EOF and status information
mysql-connector-python/lib/mysql/connector/connection_cext.py:659
↓ 4 callersFunctiongenerate_pool_name
Generate a pool name This function takes keyword arguments, usually the connection arguments for MySQLConnection, and tries to generate a nam
mysql-connector-python/lib/mysql/connector/pooling.py:326
↓ 4 callersMethodget_autoincrement_value
Returns the last insert id auto generated. Returns: int: The last insert id.
mysqlx-connector-python/lib/mysqlx/result.py:940
↓ 4 callersMethodget_character_set_name
Returns the character set name. Returns: str: The character set name.
mysqlx-connector-python/lib/mysqlx/result.py:769
↓ 4 callersMethodget_collation_name
Returns the collation name. Returns: str: The collation name.
mysqlx-connector-python/lib/mysqlx/result.py:761
↓ 4 callersMethodget_connection_params
(self)
mysql-connector-python/lib/mysql/connector/django/base.py:354
↓ 4 callersMethodget_groups
Returns options as a dictionary. Returns options from all the groups specified as arguments, returns the options from all groups if n
mysql-connector-python/lib/mysql/connector/optionfiles.py:274
↓ 4 callersFunctionget_pid
Returns the PID read from the PID file Returns None or int.
mysqlx-connector-python/tests/mysqld.py:128
↓ 4 callersFunctionget_pid
Returns the PID read from the PID file Returns None or int.
mysql-connector-python/tests/mysqld.py:128
↓ 4 callersFunctionget_platform
Return a dict with the platform arch and OS version.
mysql-connector-python/lib/mysql/connector/utils.py:634
↓ 4 callersMethodget_rows
Get all or a subset of rows returned by the MySQL server
mysql-connector-python/lib/mysql/connector/connection_cext.py:481
↓ 4 callersMethodget_self
Returns self for `weakref.proxy`. This method is used when the original object is needed when using `weakref.proxy`.
mysql-connector-python/lib/mysql/connector/abstracts.py:280
↓ 4 callersFunctionget_variables
Get session or global system variables We use the MySQL connection cnx to query the INFORMATION_SCHEMA table SESSION_VARIABLES or, when globa
mysql-connector-python/tests/cext/test_cext_api.py:89
↓ 4 callersMethodget_warnings
Returns the warnings. Returns: `list`: The list of warnings.
mysqlx-connector-python/lib/mysqlx/result.py:877
↓ 4 callersMethodhaving
Sets a condition for records to be considered in agregate function operations. Args: condition (string): A condition on t
mysqlx-connector-python/lib/mysqlx/statement.py:1078
↓ 4 callersMethodhelper_for_token_file_valid_test
(self, cnx, expected_user)
mysql-connector-python/tests/test_authentication.py:1434
↓ 4 callersMethodhelper_for_token_file_valid_test
(self, cnx, expected_user)
mysql-connector-python/tests/test_aio_authentication.py:1400
↓ 4 callersMethodindex_of
Returns the index of the column. Returns: int: The index of the column.
mysqlx-connector-python/lib/mysqlx/result.py:1043
↓ 4 callersMethodinfo_query
Send a query which only returns 1 row.
mysql-connector-python/lib/mysql/connector/aio/abstracts.py:1523
↓ 4 callersFunctionint4store
Takes an unsigned integer (4 bytes) and packs it as a bytes-object. Returns string.
mysql-connector-python/lib/mysql/connector/utils.py:134
↓ 4 callersMethodis_connected
Reports whether the connection to MySQL Server is available. This method checks whether the connection to MySQL is available. It is s
mysql-connector-python/lib/mysql/connector/aio/connection.py:695
↓ 4 callersMethodis_open
Check if connection is open. Returns: bool: `True` if connection is open.
mysqlx-connector-python/lib/mysqlx/connection.py:1346
↓ 4 callersFunctionis_table_empty
Determine if a given SQL table is empty. Args: cursor: MySQLCursorAbstract with access to the database. schema_name: Name of
mysql-connector-python/lib/mysql/ai/utils/utils.py:510
↓ 4 callersMethodis_view
Determine if the underlying object is a view or not. Returns: bool: `True` if the underlying object is a view.
mysqlx-connector-python/lib/mysqlx/crud.py:749
↓ 4 callersMethodkill
Kill connection using separate connection
mysql-connector-python/tests/test_bugs.py:673
↓ 4 callersMethodmodify_collection
Modifies a collection using a JSON schema validation. Args: name (str): The name of the collection. validation (Optio
mysqlx-connector-python/lib/mysqlx/crud.py:397
↓ 4 callersMethodnext_token
(self)
mysqlx-connector-python/lib/mysqlx/expr.py:896
↓ 4 callersMethodnext_token_type_is
(self, token_type: int)
mysqlx-connector-python/lib/mysqlx/expr.py:671
↓ 4 callersMethodparse_auth_more_data
Parse a MySQL auth more data packet. Args: pkt: Packet representing an `auth more data` response. Returns: a
mysql-connector-python/lib/mysql/connector/protocol.py:95
↓ 4 callersMethodprepare_binary_integer
Prepare an integer for the MySQL binary protocol
mysql-connector-python/lib/mysql/connector/protocol.py:881
↓ 4 callersMethodprepare_binary_time
Prepare a time object for the MySQL binary protocol This method prepares a time object of type datetime.timedelta or datetime.time fo
mysql-connector-python/lib/mysql/connector/protocol.py:958
↓ 4 callersMethodprepare_binary_timestamp
Prepare a timestamp object for the MySQL binary protocol This method prepares a timestamp of type datetime.datetime or datetime.date
mysql-connector-python/lib/mysql/connector/protocol.py:915
↓ 4 callersMethodrecv
(self, bufsize=4096, flags=0)
mysql-connector-python/tests/__init__.py:158
↓ 4 callersMethodremove
Removes documents based on the ``condition``. Args: condition (str): The string with the filter expression of the
mysqlx-connector-python/lib/mysqlx/crud.py:505
↓ 4 callersMethodremove_connection
Removes a connection from this pool. Args: cnx (PooledConnection): The connection object.
mysqlx-connector-python/lib/mysqlx/connection.py:1587
↓ 4 callersMethodsend
(self, string, flags=0)
mysql-connector-python/tests/__init__.py:187
↓ 4 callersMethodset_capabilities
Set capabilities. Args: **kwargs: Arbitrary keyword arguments. Returns: mysqlx.protobuf.Message: MySQL X Pro
mysqlx-connector-python/lib/mysqlx/protocol.py:601
↓ 4 callersMethodset_connection_timeout
Set the connection timeout.
mysql-connector-python/lib/mysql/connector/network.py:486
↓ 4 callersMethodset_unavailable
Sets this Router unavailable to open connections.
mysqlx-connector-python/lib/mysqlx/connection.py:564
↓ 4 callersFunctionsql_table_to_df
Load the entire contents of a SQL table into a pandas DataFrame. Args: cursor: MySQLCursorAbstract to execute the query. sch
mysql-connector-python/lib/mysql/ai/utils/utils.py:244
↓ 4 callersMethodtest_plain_cursor
( self, expected: bool = None, buffered: bool = False, raw: bool = False,
mysql-connector-python/tests/otel/test_instrumentation.py:642
↓ 4 callersMethodtype
int: The column type. .. versionadded:: 8.0.12
mysqlx-connector-python/lib/mysqlx/result.py:650
↓ 4 callersFunctionwrite_info_bin
Generate docs/INFO_BIN. Args: mysql_version (Optional[str]): The MySQL version. Returns: bool: ``True`` if `docs/INFO_BIN` w
mysqlx-connector-python/cpydist/utils.py:340
↓ 4 callersFunctionwrite_info_bin
Generate docs/INFO_BIN. Args: mysql_version (Optional[str]): The MySQL version. Returns: bool: ``True`` if `docs/INFO_BIN` w
mysql-connector-python/cpydist/utils.py:340
↓ 4 callersFunctionwrite_info_src
Generate docs/INFO_SRC. Returns: bool: ``True`` if `docs/INFO_SRC` was written successfully.
mysqlx-connector-python/cpydist/utils.py:320
↓ 4 callersFunctionwrite_info_src
Generate docs/INFO_SRC. Returns: bool: ``True`` if `docs/INFO_SRC` was written successfully.
mysql-connector-python/cpydist/utils.py:320
↓ 3 callersFunctionMessageDescriptorByName
mysqlx-connector-python/src/mysqlxpb/mysqlxpb.cc:590
↓ 3 callersMethod__init__
Network layer where transactions are made with plain (uncompressed) packets is enabled by default.
mysql-connector-python/lib/mysql/connector/network.py:454
↓ 3 callersMethod__init__
Network layer where transactions are made with plain (uncompressed) packets is enabled by default.
mysql-connector-python/lib/mysql/connector/aio/network.py:548
↓ 3 callersMethod__init__
( self, connection: MySQLConnectionAbstract, read_timeout: Optional[int] = None,
mysql-connector-python/lib/mysql/connector/aio/cursor.py:902
↓ 3 callersMethod_apply_filter
Apply filter. Args: msg (mysqlx.protobuf.Message): The MySQL X Protobuf Message. stmt (Statement): A `Statement` base
mysqlx-connector-python/lib/mysqlx/protocol.py:350
↓ 3 callersMethod_date_to_python
Converts TIME column MySQL to a python datetime.datetime type. Raises ValueError if the value can not be converted. Returns DATE col
mysql-connector-python/lib/mysql/connector/conversion.py:582
↓ 3 callersMethod_datetime_to_mysql
Converts a datetime instance to a string suitable for MySQL. The returned string has format: %Y-%m-%d %H:%M:%S[.%f] If the i
mysql-connector-python/lib/mysql/connector/conversion.py:368
↓ 3 callersMethod_deallocate_statement
Deallocates statement. Args: statement (Statement): A `Statement` based type object.
mysqlx-connector-python/lib/mysqlx/connection.py:1049
↓ 3 callersFunction_digest_buffer
Debug function for showing buffers
mysql-connector-python/lib/mysql/connector/utils.py:363
↓ 3 callersMethod_execute_prepared_pipeline
Executes the prepared statement pipeline. Args: msg_type (str): Message ID string. msg (mysqlx.protobuf.Message): MyS
mysqlx-connector-python/lib/mysqlx/connection.py:1089
↓ 3 callersMethod_execute_query
Execute a query. This method simply calls cmd_query() after checking for unread result. If there are still unread result, an Interfac
mysql-connector-python/lib/mysql/connector/aio/abstracts.py:1191
↓ 3 callersMethod_fetch_row
Returns the next row in the result set Returns a tuple or None.
mysql-connector-python/lib/mysql/connector/cursor_cext.py:849
↓ 3 callersMethod_fetch_row
()
mysql-connector-python/tests/test_cursor.py:1279
↓ 3 callersMethod_fetch_warnings
Fetch warnings doing a SHOW WARNINGS. Can be called after getting the result. Returns a result set or None when there were n
mysql-connector-python/lib/mysql/connector/cursor.py:671
↓ 3 callersMethod_get_compression_status
(self)
mysql-connector-python/tests/test_bugs.py:7570
↓ 3 callersMethod_get_connection
Get connection based on configuration This method will return the appropriated connection object using the connection parameters.
mysql-connector-python/lib/mysql/connector/connection.py:341
↓ 3 callersMethod_get_kerberos_tgt
Obtain and cache Kerberos ticket-granting ticket. Call `kinit` with a specified user and password for obtaining and caching Kerberos
mysql-connector-python/tests/test_authentication.py:569
↓ 3 callersMethod_get_kerberos_tgt
Obtain and cache Kerberos ticket-granting ticket. Call `kinit` with a specified user and password for obtaining and caching Kerberos
mysql-connector-python/tests/test_aio_authentication.py:530
↓ 3 callersMethod_get_mysqlx_bytes
(self, session)
mysqlx-connector-python/tests/test_mysqlx_connection.py:2400
↓ 3 callersMethod_get_next_pool
( self, pools: List[ConnectionPool], cur_priority: int )
mysqlx-connector-python/lib/mysqlx/connection.py:1886
↓ 3 callersMethod_get_pools
Retrieves a list of pools that shares the given settings. Args: settings (dict): the configuration of the pool. Returns:
mysqlx-connector-python/lib/mysqlx/connection.py:1763
↓ 3 callersMethod_get_user
Fetch the current database user (without host). Returns: The username string associated with the connection. Ra
mysql-connector-python/lib/mysql/ai/ml/model.py:272
↓ 3 callersMethod_handle_binary_ok
Handle a MySQL Binary Protocol OK packet This method handles a MySQL Binary Protocol OK packet. When the packet is found to be an Err
mysql-connector-python/lib/mysql/connector/connection.py:1487
↓ 3 callersMethod_handle_noresultset
Handles result of execute() when there is no result set
mysql-connector-python/lib/mysql/connector/cursor.py:318
↓ 3 callersMethod_handle_result
Handle a MySQL Result This method handles a MySQL result, for example, after sending the query command. OK and EOF packets will be ha
mysql-connector-python/lib/mysql/connector/connection.py:716
↓ 3 callersMethod_handle_result
Handle a MySQL Result. This method handles a MySQL result, for example, after sending the query command. OK and EOF packets will be h
mysql-connector-python/lib/mysql/connector/aio/connection.py:500
↓ 3 callersMethod_handle_server_status
Handle the server flags found in MySQL packets. This method handles the server flags send by MySQL OK and EOF packets. It, for exampl
mysql-connector-python/lib/mysql/connector/aio/connection.py:374
↓ 3 callersMethod_handle_warnings
Handle possible warnings after all results are consumed. Raises: Error: Also raises exceptions if raise_on_warnings is set.
mysql-connector-python/lib/mysql/connector/cursor_cext.py:254
← previousnext →401–500 of 5,006, ranked by callers