Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
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
↓ 2 callers
Method
get_row_result
Returns the row result. Args: cmd (str): The command. fields (dict): The message fields. Returns:
mysqlx-connector-python/lib/mysqlx/connection.py:1294
↓ 2 callers
Function
get_scenarios_matrix
(scenarios_lists)
mysql-connector-python/tests/__init__.py:1327
↓ 2 callers
Method
get_schema_name
Returns the schema name. Returns: str: The schema name.
mysqlx-connector-python/lib/mysqlx/result.py:689
↓ 2 callers
Method
get_server_info
Gets the original MySQL version information. Returns: The original MySQL server as text. If not previously connected, it will
mysql-connector-python/lib/mysql/connector/abstracts.py:964
↓ 2 callers
Method
get_sql_mode
Gets the SQL mode.
mysql-connector-python/lib/mysql/connector/aio/abstracts.py:1015
↓ 2 callers
Function
get_stats_field
(pyver=None, myver=None)
mysql-connector-python/unittests.py:486
↓ 2 callers
Method
get_string_types
Get the list of all string types
mysql-connector-python/lib/mysql/connector/constants.py:488
↓ 2 callers
Method
get_timestamp_types
Get the list of all timestamp types
mysql-connector-python/lib/mysql/connector/constants.py:525
↓ 2 callers
Method
get_wrapped_class
Gets the wrapped class name.
mysql-connector-python/lib/mysql/connector/opentelemetry/instrumentation.py:310
↓ 2 callers
Method
has_data
Returns True if result has data. Returns: bool: Returns `True` if result has data. .. versionadded:: 8.0.12
mysqlx-connector-python/lib/mysqlx/result.py:1146
↓ 2 callers
Function
hexlify
Return the hexadecimal representation of the binary data. Args: data (bytes): The binary data. Returns: str: The decoded hex
mysqlx-connector-python/lib/mysqlx/helpers.py:225
↓ 2 callers
Method
info_query
Send a query which only returns 1 row
mysql-connector-python/lib/mysql/connector/connection_cext.py:451
↓ 2 callers
Function
init_mysql_server
Initialize a MySQL Server
mysqlx-connector-python/unittests.py:459
↓ 2 callers
Function
init_mysql_server
Initialize a MySQL Server
mysql-connector-python/unittests.py:732
↓ 2 callers
Method
instrument_connection
Enable instrumentation in a MySQL connection. Args: connection: uninstrumented connection instance. trace_module: ref
mysql-connector-python/lib/mysql/connector/opentelemetry/instrumentation.py:608
↓ 2 callers
Method
is_closed
Return True if the connection to MySQL Server is closed.
mysql-connector-python/lib/mysql/connector/connection_cext.py:406
↓ 2 callers
Method
is_connected
Reports whether the connection to MySQL Server is available This method checks whether the connection to MySQL is available. It is si
mysql-connector-python/lib/mysql/connector/connection.py:1265
↓ 2 callers
Method
is_connected
Reports whether the connection to MySQL Server is available
mysql-connector-python/lib/mysql/connector/connection_cext.py:410
↓ 2 callers
Method
is_control_char
Validates whether `char` is a control character or not.
mysql-connector-python/lib/mysql/connector/_scripting.py:115
↓ 2 callers
Method
is_padded
Returns `True` if is padded. Returns: bool: Returns `True` if is padded.
mysqlx-connector-python/lib/mysqlx/result.py:785
↓ 2 callers
Method
is_secure
Verifies if connection is secure. Returns: bool: Returns `True` if connection is secure.
mysqlx-connector-python/lib/mysqlx/connection.py:464
↓ 2 callers
Method
is_socket
Verifies if socket connection is being used. Returns: bool: Returns `True` if socket connection is being used.
mysqlx-connector-python/lib/mysqlx/connection.py:456
↓ 2 callers
Function
is_valid_date
Check whether a date is valid or not. Check whether the date defined by the arguments year, month, and day, is valid or not. @param day
mysql-connector-python/src/mysql_capi_conversion.c:137
↓ 2 callers
Method
is_white_space_char
Validates whether `char` is a white-space character or not.
mysql-connector-python/lib/mysql/connector/_scripting.py:110
↓ 2 callers
Method
isset_client_flag
Checks if a client flag is set. Returns: `True` if the client flag was set, `False` otherwise.
mysql-connector-python/lib/mysql/connector/abstracts.py:1103
↓ 2 callers
Method
lex
(self)
mysqlx-connector-python/lib/mysqlx/expr.py:542
↓ 2 callers
Method
lex_number
(self, pos: int)
mysqlx-connector-python/lib/mysqlx/expr.py:473
↓ 2 callers
Function
linux_distribution
Tries to determine the name of the Linux OS distribution name. First tries to get information from ``/etc/os-release`` file. If fails, tries
mysqlx-connector-python/lib/mysqlx/utils.py:105
↓ 2 callers
Function
linux_distribution
Try to determine the name of the Linux OS distribution name. First try to get information from ``/etc/lsb-release`` file. If it fails, try to
mysqlx-connector-python/cpydist/utils.py:401
↓ 2 callers
Function
linux_distribution
Try to determine the name of the Linux OS distribution name. First try to get information from ``/etc/lsb-release`` file. If it fails, try to
mysql-connector-python/cpydist/utils.py:401
↓ 2 callers
Method
make_conn_attrs
Encode the connection attributes. Args: conn_attrs: Connection attributes. Returns: serialized_conn_attrs: S
mysql-connector-python/lib/mysql/connector/protocol.py:171
↓ 2 callers
Method
make_stmt_fetch
Make a MySQL packet with Fetch Statement command
mysql-connector-python/lib/mysql/connector/protocol.py:445
↓ 2 callers
Function
mysql_c_api_info
Get MySQL information using mysql_config tool. Returns: dict: Containing MySQL information about libraries.
mysql-connector-python/cpydist/utils.py:193
↓ 2 callers
Function
mytopy_bit
Convert a MySQL BIT to Python int/long. @param obj PyObject to be converted @return Converted decimal as string @retval PyInt
mysql-connector-python/src/mysql_capi_conversion.c:633
↓ 2 callers
Function
mytopy_date
Convert a DATE MySQL value to Python datetime.date. Convert a DATETIME MySQL value to Python datetime.date. When a date can be parsed, but it is
mysql-connector-python/src/mysql_capi_conversion.c:372
↓ 2 callers
Function
mytopy_datetime
Convert a DATETIME MySQL value to Python datetime.datetime. Convert a DATETIME MySQL value to Python datetime.datetime. The fractional part is su
mysql-connector-python/src/mysql_capi_conversion.c:408
↓ 2 callers
Function
mytopy_time
Convert a TIME MySQL value to Python datetime.timedelta. Convert a TIME MySQL value to a Python datetime.timedelta returned as PyDelta_FromDSU ob
mysql-connector-python/src/mysql_capi_conversion.c:482
↓ 2 callers
Method
name
Returns the name of this MySQL server
mysqlx-connector-python/tests/mysqld.py:624
↓ 2 callers
Method
new_tracker
(self, new_session_name: str = "")
mysql-connector-python/tests/otel/collector.py:186
↓ 2 callers
Method
num_rows
Returns number of rows of current result set
mysql-connector-python/lib/mysql/connector/connection_cext.py:888
↓ 2 callers
Method
open_connection
(self)
mysql-connector-python/tests/test_network.py:275
↓ 2 callers
Method
paren_expr_list
Parse a paren-bounded expression list for function arguments or IN list and return a list of Expr objects.
mysqlx-connector-python/lib/mysqlx/expr.py:689
↓ 2 callers
Method
parse_auth_next_factor
Parse a MySQL auth next factor packet. Args: pkt: Packet representing an `auth next factor` response. Returns:
mysql-connector-python/lib/mysql/connector/protocol.py:144
↓ 2 callers
Method
parse_auth_switch_request
Parse a MySQL auth switch request packet. Args: pkt: Packet representing an `auth switch request` response. Returns:
mysql-connector-python/lib/mysql/connector/protocol.py:117
↓ 2 callers
Function
parse_loose_version
Parse a loose version number. Args: version (str): Version string. Returns the numeric version that can contain strings.
mysql-connector-python/cpydist/utils.py:661
↓ 2 callers
Method
parse_message
Serialize partial message. Args: msg_type_name (str): Message type name. payload (bytes): Payload.
mysqlx-connector-python/lib/mysqlx/protobuf/__init__.py:330
↓ 2 callers
Method
parse_server_message
Parse server message message. Args: msg_type (int): Message type. payload (bytes): Payload.
mysqlx-connector-python/lib/mysqlx/protobuf/__init__.py:345
↓ 2 callers
Function
parse_trace_id
(obj: Dict)
mysql-connector-python/tests/otel/collector.py:49
↓ 2 callers
Method
predict
Predict outlier/inlier binary labels for input samples. Args: X: Samples to predict on. Returns: nd
mysql-connector-python/lib/mysql/ai/ml/outlier.py:119
↓ 2 callers
Method
predict_proba
Predict class probabilities for the input features using the MySQL model. References: https://dev.mysql.com/doc/heatwave
mysql-connector-python/lib/mysql/ai/ml/classifier.py:131
↓ 2 callers
Method
prepare_for_mysql
Prepare parameters for statements This method is use by cursors to prepared parameters found in the list (or tuple) params.
mysql-connector-python/lib/mysql/connector/connection_cext.py:921
↓ 2 callers
Method
prepare_stmt_send_long_data
Prepare long data for prepared statements Returns a string.
mysql-connector-python/lib/mysql/connector/protocol.py:1014
↓ 2 callers
Method
push_message
Push message. Args: msg (mysqlx.protobuf.Message): MySQL X Protobuf Message. Raises: :class:`mysqlx.Operatio
mysqlx-connector-python/lib/mysqlx/protocol.py:241
↓ 2 callers
Function
python_characterset_name
Get Python character name based on MySQL character name */
mysql-connector-python/src/mysql_capi.c:159
↓ 2 callers
Function
pytomy_date
Convert a Python datetime.date to MySQL DATE. Convert the PyObject obj, which must be a datetime.date, to MySQL DATE value. Raises TypeError w
mysql-connector-python/src/mysql_capi_conversion.c:343
↓ 2 callers
Function
pytomy_datetime
Convert a Python datetime.datetime to MySQL DATETIME. Convert the PyObject obj, which must be a datetime.datetime, to MySQL DATETIME value. Ra
mysql-connector-python/src/mysql_capi_conversion.c:302
↓ 2 callers
Function
pytomy_time
Convert a Python datetime.time to MySQL TIME. Convert the PyObject obj, which must be a datetime.time, to MySQL TIME value. Raises TypeError w
mysql-connector-python/src/mysql_capi_conversion.c:263
↓ 2 callers
Method
query_attrs_append
Add element to the query attributes list on the connector's side. If an element in the query attributes list already matches the attr
mysql-connector-python/lib/mysql/connector/aio/abstracts.py:1478
↓ 2 callers
Method
query_attrs_remove
Remove element by name from the query attributes list. If no match, `None` is returned, else the corresponding value is returned. Ar
mysql-connector-python/lib/mysql/connector/aio/abstracts.py:1491
↓ 2 callers
Function
r
(n)
mysqlx-connector-python/docs/mysqlx/_themes/sphinx_rtd_theme/static/js/badge_only.js:1
↓ 2 callers
Method
raise_socket_error
(self, err=errno.EPERM)
mysql-connector-python/tests/__init__.py:155
↓ 2 callers
Method
read_auth_continue
Read authenticate continue. Raises: :class:`InterfaceError`: If the message type is not `Mys
mysqlx-connector-python/lib/mysqlx/protocol.py:673
↓ 2 callers
Function
read_bytes
Reads bytes from a buffer. Returns a tuple with buffer less the read bytes, and the bytes.
mysql-connector-python/lib/mysql/connector/utils.py:200
↓ 2 callers
Function
read_lc_string_list
Reads all length encoded strings from the given buffer Returns a list of bytes
mysql-connector-python/lib/mysql/connector/utils.py:263
↓ 2 callers
Method
remove_comments
Remove MySQL comments which include `--`-style, `#`-style and `C`-style comments. A `--`-style comment spans from `--` to the end of
mysql-connector-python/lib/mysql/connector/_scripting.py:130
↓ 2 callers
Method
reset
Reset the connection. Resets the connection by re-authenticate.
mysqlx-connector-python/lib/mysqlx/connection.py:1494
↓ 2 callers
Method
reset
(self, free: bool = True)
mysql-connector-python/lib/mysql/connector/cursor.py:1106
↓ 2 callers
Method
run
Run the command.
mysql-connector-python/cpydist/sdist.py:222
↓ 2 callers
Method
run_test
(self, cnxpool)
mysql-connector-python/tests/test_bugs.py:4926
↓ 2 callers
Method
send_auth_continue
Send authenticate continue. Args: auth_data (str): Authentication data.
mysqlx-connector-python/lib/mysqlx/protocol.py:692
↓ 2 callers
Method
send_delete
Send an delete statement. Args: statement (`Statement`): It can be :class:`mysqlx.RemoveStatement`
mysqlx-connector-python/lib/mysqlx/connection.py:1210
↓ 2 callers
Method
send_insert
Send an insert statement. Args: statement (`Statement`): It can be :class:`mysqlx.InsertStatement`
mysqlx-connector-python/lib/mysqlx/connection.py:1172
↓ 2 callers
Method
send_prepare_deallocate
Send prepare deallocate statement. Args: stmt_id (int): Statement ID. .. versionadded:: 8.0.16
mysqlx-connector-python/lib/mysqlx/protocol.py:822
↓ 2 callers
Method
send_update
Send an delete statement. Args: statement (`Statement`): It can be :class:`mysqlx.ModifyStatement`
mysqlx-connector-python/lib/mysqlx/connection.py:1225
↓ 2 callers
Method
sendall
Send data to the socket. Args: data (bytes): The data to be sent.
mysqlx-connector-python/lib/mysqlx/connection.py:321
↓ 2 callers
Method
serialize_partial_to_string
Serializes the protocol message to a binary string. This method is similar to serialize_to_string but doesn't check if the message is
mysqlx-connector-python/lib/mysqlx/protobuf/__init__.py:513
↓ 2 callers
Method
set_database
Set the current database.
mysql-connector-python/lib/mysql/connector/aio/abstracts.py:885
↓ 2 callers
Method
set_message
Sets the message. Args: msg (dict): Dictionary representing a message.
mysqlx-connector-python/lib/mysqlx/protobuf/__init__.py:486
↓ 2 callers
Method
set_pool_unavailable
Sets a pool as unavailable. The time a pool is set unavailable depends on the given error message or the error number. Args:
mysqlx-connector-python/lib/mysqlx/connection.py:2091
↓ 2 callers
Function
setup_cmd_parser
()
automation/generate_tls_ciphers_file.py:77
↓ 2 callers
Function
setup_cmd_parser
()
mysql-connector-python/tests/otel/context_propagation/sanity_check.py:141
↓ 2 callers
Method
shutdown
Shut down the socket before closing it.
mysql-connector-python/lib/mysql/connector/network.py:468
↓ 2 callers
Method
sql
Creates a :class:`mysqlx.SqlStatement` object to allow running the SQL statement on the target MySQL Server. Args: sql (s
mysqlx-connector-python/lib/mysqlx/connection.py:1501
↓ 2 callers
Function
str_to_bytes
Convert an Python object to a bytes type. Convert the given PyObject using the given character set to either a PyString_Type or PyBytes_Type for
mysql-connector-python/src/mysql_capi.c:132
↓ 2 callers
Method
switch_to_compressed_mode
Enable network layer where transactions are made with compressed packets.
mysql-connector-python/lib/mysql/connector/network.py:464
↓ 2 callers
Method
to_python
Convert MySQL data type to Python
mysql-connector-python/lib/mysql/connector/conversion.py:266
↓ 2 callers
Method
track_connection
Tracks connection in order of close it when client.close() is invoke.
mysqlx-connector-python/lib/mysqlx/connection.py:1676
↓ 2 callers
Method
transform
Transform input data to model predictions using the underlying helper. Args: X: DataFrame of features to predict/transfo
mysql-connector-python/lib/mysql/ai/ml/transformer.py:117
↓ 2 callers
Method
try_connect
(self, tls_version, expected_ssl_version)
mysql-connector-python/tests/test_bugs.py:5131
↓ 2 callers
Method
uninstall_ai_dependencies
()
mysql-connector-python/tests/ai/utilities.py:124
↓ 2 callers
Function
update_header
Updates the Copyright header of the provided file. Args: root: Absolute path to the folder where `file` can be found. filename: F
automation/headerfy.py:127
↓ 2 callers
Method
update_plugin_config
Update the 'plugin_config' instance variable
mysql-connector-python/lib/mysql/connector/authentication.py:87
↓ 2 callers
Method
update_plugin_config
Update the 'plugin_config' instance variable
mysql-connector-python/lib/mysql/connector/aio/authentication.py:90
↓ 2 callers
Method
verify_result_sets
( test_obj: Union[tests.MySQLConnectorTests, tests.MySQLConnectorAioTestCase], script: str,
mysql-connector-python/tests/qa/test_qa_multi_statement.py:629
↓ 2 callers
Method
warning_count
Returns the number of warnings. This property returns the number of warnings generated by the previously executed operation.
mysql-connector-python/lib/mysql/connector/abstracts.py:3088
↓ 2 callers
Function
xor_string
Encrypt/Decrypt function used for password encryption in authentication, using a simple XOR. Args: hash1 (str): The first hash.
mysqlx-connector-python/lib/mysqlx/authentication.py:39
↓ 1 callers
Function
AddPyListToMessageRepeatedEnum
mysqlx-connector-python/src/mysqlxpb/mysqlxpb.cc:457
↓ 1 callers
Function
AddPyListToMessageRepeatedMessage
mysqlx-connector-python/src/mysqlxpb/mysqlxpb.cc:415
↓ 1 callers
Function
ConvertPbToPyRepeated
mysqlx-connector-python/src/mysqlxpb/mysqlxpb.cc:178
↓ 1 callers
Function
ConvertPbToPyRequired
mysqlx-connector-python/src/mysqlxpb/mysqlxpb.cc:80
← previous
next →
801–900 of 5,006, ranked by callers