Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/mysql/mysql-connector-python
/ functions
Functions
5,006 in github.com/mysql/mysql-connector-python
⨍
Functions
5,006
◇
Types & classes
734
↳
Endpoints
17
↓ 6 callers
Method
_test_result
(self, cnx, exp_values, cursor=None, use_binary_charset=False)
mysql-connector-python/tests/test_bugs.py:6433
↓ 6 callers
Method
_test_rowcount
(self, **cursor_config)
mysql-connector-python/tests/qa/test_qa_multi_statement.py:698
↓ 6 callers
Method
_test_with_st_cache
Test with cached valid ST.
mysql-connector-python/tests/test_authentication.py:659
↓ 6 callers
Method
_test_with_st_cache
Test with cached valid ST.
mysql-connector-python/tests/test_aio_authentication.py:620
↓ 6 callers
Method
add_documents
Embed and store Document objects as high-dimensional vectors with metadata. Args: documents: List of Document objects (e
mysql-connector-python/lib/mysql/ai/genai/vector_store.py:302
↓ 6 callers
Method
check_call
( self, responses: List[List[float]], expected_calls: List[Tuple[str, list]], )
mysql-connector-python/tests/ai/genai/test_embedding.py:120
↓ 6 callers
Function
check_dependencies
Check required runtime dependencies and minimum versions; raise an error if any are missing or version-incompatible. This verifies the p
mysql-connector-python/lib/mysql/ai/utils/dependencies.py:40
↓ 6 callers
Method
cmd_query
Send a query to the MySQL server. This method send the query to the MySQL server and returns the result. If there was a text result,
mysql-connector-python/lib/mysql/connector/aio/abstracts.py:1790
↓ 6 callers
Method
cmd_reset_connection
Resets the session state without re-authenticating Reset command only works on MySQL server 5.7.3 or later. The result is True for a
mysql-connector-python/lib/mysql/connector/connection.py:1764
↓ 6 callers
Method
cmd_stmt_execute
Execute a prepared MySQL statement
mysql-connector-python/lib/mysql/connector/connection.py:1615
↓ 6 callers
Method
connect
Attempt to connect to the MySQL server. Raises: :class:`mysqlx.InterfaceError`: If fails to connect to the MySQL
mysqlx-connector-python/lib/mysqlx/connection.py:769
↓ 6 callers
Function
end_trace_tracking
()
mysql-connector-python/tests/otel/test_instrumentation.py:141
↓ 6 callers
Method
explain_predictions
Explain model predictions using provided data. If an 'id' column is defined in either dataframe, it will be used as the primary key.
mysql-connector-python/lib/mysql/ai/ml/model.py:727
↓ 6 callers
Function
file_uri
(path, brackets=True)
mysqlx-connector-python/tests/test_mysqlx_connection.py:353
↓ 6 callers
Function
get_current_connections
Retrieves open connections using the the given session
mysqlx-connector-python/tests/test_mysqlx_pooling.py:60
↓ 6 callers
Function
get_item_or_attr
Get item from dictionary or attribute from object. Args: obj (object): Dictionary or object. key (str): Key. Returns:
mysqlx-connector-python/lib/mysqlx/helpers.py:72
↓ 6 callers
Method
get_model_info
Checks if the model name is available. Model info will only be present in the catalog if the model has previously been fitted.
mysql-connector-python/lib/mysql/ai/ml/base.py:129
↓ 6 callers
Method
get_rows
Get all rows returned by the MySQL server. This method gets all rows returned by the MySQL server after sending, for example, the que
mysql-connector-python/lib/mysql/connector/aio/connection.py:922
↓ 6 callers
Method
is_doc_based
Check if it is document based. Returns: bool: `True` if it is document based.
mysqlx-connector-python/lib/mysqlx/statement.py:229
↓ 6 callers
Method
is_open
Returns `True` if the session is open. Returns: bool: Returns `True` if the session is open.
mysqlx-connector-python/lib/mysqlx/connection.py:2293
↓ 6 callers
Method
make_auth_ssl
Make a SSL authentication packet (see [1]). Args: charset: Client charset (see [2]), only the lower 8-bits. client_fl
mysql-connector-python/lib/mysql/connector/protocol.py:406
↓ 6 callers
Function
parse_end_of_session_payload
Returns query spans, connection span and app span.
mysql-connector-python/tests/otel/test_instrumentation.py:150
↓ 6 callers
Method
predict
Predict class labels for the input features using the MySQL model. References: https://dev.mysql.com/doc/heatwave/en/mys
mysql-connector-python/lib/mysql/ai/ml/classifier.py:104
↓ 6 callers
Method
replace_one
Replaces the Document matching the document ID with a new document provided. Args: doc_id (str): Document ID
mysqlx-connector-python/lib/mysqlx/crud.py:602
↓ 6 callers
Method
reset_session
Clears the current active session This method resets the session state, if the MySQL server is 5.7.3 or later active session will be
mysql-connector-python/lib/mysql/connector/connection.py:1294
↓ 6 callers
Method
score_samples
Compute normal probability logit score for each sample. Used for ranking, thresholding. Args: X: Samples to scor
mysql-connector-python/lib/mysql/ai/ml/outlier.py:193
↓ 6 callers
Method
send_msg_without_ps
Send a message without prepared statements support. Args: msg_type (str): Message ID string. msg (mysqlx.pro
mysqlx-connector-python/lib/mysqlx/protocol.py:839
↓ 6 callers
Method
set_allow_local_infile_in_path
Set the path that user can upload files. Args: path (str): Path that user can upload files.
mysql-connector-python/lib/mysql/connector/connection.py:1280
↓ 6 callers
Method
shutdown
(self)
mysql-connector-python/tests/otel/collector.py:199
↓ 6 callers
Function
split_multi_statement
Breaks a MySQL script into sub-scripts. If the given script uses `DELIMITER` statements (which are not recognized by MySQL Server), the conne
mysql-connector-python/lib/mysql/connector/_scripting.py:292
↓ 6 callers
Function
sql_response_to_df
Convert the results of a cursor's last executed query to a pandas DataFrame. Args: cursor: MySQLCursorAbstract with a completed quer
mysql-connector-python/lib/mysql/ai/utils/utils.py:198
↓ 6 callers
Function
start_trace_tracking
()
mysql-connector-python/tests/otel/test_instrumentation.py:132
↓ 6 callers
Method
to_mysql
Convert Python data type to MySQL
mysql-connector-python/lib/mysql/connector/conversion.py:236
↓ 5 callers
Method
__init__
(self, stream, descriptions, verbosity, dbcnx=None)
mysql-connector-python/unittests.py:502
↓ 5 callers
Method
_assert_flat_line
(self, samples)
mysql-connector-python/tests/test_bugs.py:853
↓ 5 callers
Method
_check_int_result
(self, result, exp, data)
mysql-connector-python/tests/test_utils.py:46
↓ 5 callers
Method
_do_handshake
Get the handshake from the MySQL server
mysql-connector-python/lib/mysql/connector/connection.py:212
↓ 5 callers
Method
_fetch_row
Return the next row in the result set.
mysql-connector-python/lib/mysql/connector/aio/cursor.py:220
↓ 5 callers
Method
_get_cursor
(self, cnx=None)
mysql-connector-python/tests/cext/test_cext_cursor.py:657
↓ 5 callers
Method
_handle_result
Handle the result after a command was send. The result can be either an OK-packet or a dictionary containing column/eof information.
mysql-connector-python/lib/mysql/connector/aio/cursor.py:255
↓ 5 callers
Method
_have_unread_result
Check whether there is an unread result.
mysql-connector-python/lib/mysql/connector/aio/cursor.py:357
↓ 5 callers
Method
_post_connection
Executes commands after connection has been established. This method executes commands after the connection has been established. Som
mysql-connector-python/lib/mysql/connector/abstracts.py:1549
↓ 5 callers
Method
_row_to_python
Convert a MySQL text result row to Python types Returns a dictionary.
mysql-connector-python/lib/mysql/connector/cursor.py:1391
↓ 5 callers
Method
_row_to_python
Convert a MySQL text result row to Python types Returns a dictionary.
mysql-connector-python/lib/mysql/connector/aio/cursor.py:974
↓ 5 callers
Method
_save_not_ok
(self, test)
mysql-connector-python/unittests.py:540
↓ 5 callers
Method
_set_next_compressed_pktnr
Increment packet id.
mysql-connector-python/lib/mysql/connector/network.py:287
↓ 5 callers
Method
_set_where
Sets the search condition to filter. Args: condition (str): Sets the search condition to filter documents or
mysqlx-connector-python/lib/mysqlx/statement.py:345
↓ 5 callers
Method
_str_to_mysql
Convert value to string
mysql-connector-python/lib/mysql/connector/conversion.py:324
↓ 5 callers
Method
_test_fetch_fetchall
Test results from fetchall are the same in pure and using c-ext
mysql-connector-python/tests/test_bugs.py:5372
↓ 5 callers
Method
_test_fetchmany
Test results from fetchmany are the same in pure and using c-ext
mysql-connector-python/tests/test_bugs.py:5343
↓ 5 callers
Method
_test_fetchone
Test result from fetchone is the same in pure and using c-ext
mysql-connector-python/tests/test_bugs.py:5325
↓ 5 callers
Function
anext
(ait)
mysql-connector-python/tests/qa/test_qa_aio_timeout.py:45
↓ 5 callers
Method
array_append
Inserts a value into a specific position in an array attribute in documents of a collection. Args: doc_path (string): A d
mysqlx-connector-python/lib/mysqlx/statement.py:915
↓ 5 callers
Method
assertIsInstance
(self, obj, cls, msg=None)
mysqlx-connector-python/tests/__init__.py:506
↓ 5 callers
Method
available
Verifies if the Router is available to open connections. Returns: bool: True if this Router is available else False.
mysqlx-connector-python/lib/mysqlx/connection.py:556
↓ 5 callers
Function
build_expr
(value: BuildExprTypes)
mysqlx-connector-python/lib/mysqlx/expr.py:312
↓ 5 callers
Method
close
Close the socket.
mysqlx-connector-python/lib/mysqlx/connection.py:334
↓ 5 callers
Method
close
Do not close, but adds connection back to pool. For a pooled connection, close() does not actually close it but returns it to the poo
mysql-connector-python/lib/mysql/connector/pooling.py:398
↓ 5 callers
Method
close_connection
Announce to the server that the client wants to close the connection. Discards any session state of the server.
mysqlx-connector-python/lib/mysqlx/connection.py:1428
↓ 5 callers
Method
cmd_ping
Send the PING command This method sends the PING command to the MySQL server. It is used to check if the the connection is still vali
mysql-connector-python/lib/mysql/connector/connection.py:1158
↓ 5 callers
Method
cmd_statistics
Send the statistics command to the MySQL Server This method sends the STATISTICS command to the MySQL server. The result is a diction
mysql-connector-python/lib/mysql/connector/connection.py:1121
↓ 5 callers
Method
compare
(self, name, val1, val2)
mysql-connector-python/tests/test_mysql_datatypes.py:76
↓ 5 callers
Method
consume_results
Consume results
mysql-connector-python/lib/mysql/connector/connection.py:863
↓ 5 callers
Method
decompress
Decompresses a frame of data and returns it as a string of bytes. Args: data (str, bytes or buffer object): Data to be compressed
mysqlx-connector-python/lib/mysqlx/protocol.py:145
↓ 5 callers
Method
explain_model
Get model explanations, such as detailed feature importances. Returns: dict: Feature importances and model explainabilit
mysql-connector-python/lib/mysql/ai/ml/model.py:291
↓ 5 callers
Method
fetch_eof_columns
Fetch EOF and column information
mysql-connector-python/lib/mysql/connector/connection_cext.py:624
↓ 5 callers
Function
flag_is_set
Checks if the flag is set Returns boolean
mysql-connector-python/lib/mysql/connector/constants.py:311
↓ 5 callers
Method
get_database
Get the current database.
mysql-connector-python/lib/mysql/connector/aio/abstracts.py:880
↓ 5 callers
Function
get_dummy_embeddings
()
mysql-connector-python/tests/ai/genai/test_vector_store.py:64
↓ 5 callers
Function
get_stats_tablename
()
mysql-connector-python/unittests.py:480
↓ 5 callers
Method
get_store
Get a credentials store dictionary. Returns: dict: Credentials store dictionary with the krb5 ccache name. Raises:
mysql-connector-python/lib/mysql/connector/plugins/authentication_kerberos_client.py:194
↓ 5 callers
Method
handle_unread_result
Handle unread result. Consume pending results if is configured for it. Raises: InternalError: When there are pending res
mysql-connector-python/lib/mysql/connector/aio/abstracts.py:1505
↓ 5 callers
Function
my2py_charset_name
Get the character set name from the current MySQL session. Get the character set name from the current MySQL session. Some MySQL character sets h
mysql-connector-python/src/mysql_capi.c:189
↓ 5 callers
Method
next_result
Process the next result. Returns: bool: Returns `True` if the fetch is done.
mysqlx-connector-python/lib/mysqlx/result.py:1134
↓ 5 callers
Method
next_result
Reads the next result
mysql-connector-python/lib/mysql/connector/connection_cext.py:589
↓ 5 callers
Method
parse_column_count
Parse a MySQL packet with the number of columns in result set
mysql-connector-python/lib/mysql/connector/protocol.py:525
↓ 5 callers
Method
parse_handshake
Parse a MySQL Handshake-packet.
mysql-connector-python/lib/mysql/connector/protocol.py:450
↓ 5 callers
Method
parse_ok
Parse a MySQL OK-packet
mysql-connector-python/lib/mysql/connector/protocol.py:502
↓ 5 callers
Method
pos_token_type_is
(self, pos: int, token_type: int)
mysqlx-connector-python/lib/mysqlx/expr.py:680
↓ 5 callers
Function
random_name_patcher
Create a patch for the mysql.ai.utils._get_name function to return lexicographically generated names. Returns: unittest.mock._patch:
mysql-connector-python/tests/ai/utilities.py:67
↓ 5 callers
Function
record_exception_event
Records an exeception event.
mysql-connector-python/lib/mysql/connector/opentelemetry/instrumentation.py:88
↓ 5 callers
Method
reset
(self, free: bool = True)
mysql-connector-python/lib/mysql/connector/cursor_cext.py:138
↓ 5 callers
Method
run
(self, result=None)
mysql-connector-python/tests/__init__.py:737
↓ 5 callers
Method
send_msg
Send a message. Args: msg_type (str): Message ID string. msg (mysqlx.protobuf.Message): MySQL X Protobuf Mes
mysqlx-connector-python/lib/mysqlx/protocol.py:867
↓ 5 callers
Function
set_connection_span_attrs
Defines connection span attributes. If `cnx` is None then we use `cnx_kwargs` to get basic net information. Basic net attributes are defined such
mysql-connector-python/lib/mysql/connector/opentelemetry/instrumentation.py:113
↓ 5 callers
Function
source_schema
Retrieve the name of the currently selected schema, or set and ensure the default schema. Args: db_connection: MySQL connector datab
mysql-connector-python/lib/mysql/ai/utils/utils.py:481
↓ 5 callers
Function
t
(i)
mysqlx-connector-python/docs/mysqlx/_themes/sphinx_rtd_theme/static/js/theme.js:1
↓ 4 callers
Method
__helper_get_rows_buffer
(self, toggle_next_result=False)
mysql-connector-python/tests/test_connection.py:391
↓ 4 callers
Method
__helper_get_rows_buffer
(self, toggle_next_result=False)
mysql-connector-python/tests/test_aio_connection.py:337
↓ 4 callers
Method
__init__
Initialize
mysql-connector-python/lib/mysql/connector/cursor_cext.py:126
↓ 4 callers
Method
__init__
Initialize
mysql-connector-python/lib/mysql/connector/cursor.py:189
↓ 4 callers
Method
_acquire_cred_with_password
Acquire and store credentials through provided password. Args: upn (str): User Principal Name. Returns: gssa
mysql-connector-python/lib/mysql/connector/aio/plugins/authentication_kerberos_client.py:220
↓ 4 callers
Method
_acquire_cred_with_password
Acquire and store credentials through provided password. Args: upn (str): User Principal Name. Returns: gssa
mysql-connector-python/lib/mysql/connector/plugins/authentication_kerberos_client.py:219
↓ 4 callers
Function
_bytestr_format_dict
>>> _bytestr_format_dict(b'%(a)s', {b'a': b'foobar'}) b'foobar >>> _bytestr_format_dict(b'%%(a)s', {b'a': b'foobar'}) b'%%(a)s' >
mysql-connector-python/lib/mysql/connector/cursor.py:144
↓ 4 callers
Method
_check_error_event
Check an error event.
mysql-connector-python/tests/otel/test_instrumentation.py:724
↓ 4 callers
Method
_datetime_to_python
Connector/Python always returns naive datetime.datetime Connector/Python always returns naive timestamps since MySQL has no time zone
mysql-connector-python/lib/mysql/connector/django/base.py:627
↓ 4 callers
Method
_execute_query
Executes a query.
mysql-connector-python/lib/mysql/connector/abstracts.py:1801
↓ 4 callers
Method
_get_openssl_libs
(self, lib_dir=None, ext=None)
mysql-connector-python/cpydist/__init__.py:231
↓ 4 callers
Method
_handle_eof
Handle EOF packet
mysql-connector-python/lib/mysql/connector/cursor_cext.py:1010
↓ 4 callers
Method
_handle_server_status
Check for SERVER_STATUS_CURSOR_EXISTS and SERVER_STATUS_LAST_ROW_SENT flags set by the server.
mysql-connector-python/lib/mysql/connector/cursor.py:1126
← previous
next →
301–400 of 5,006, ranked by callers