MCPcopy Create free account

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

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

↓ 2 callersMethodget_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 callersFunctionget_scenarios_matrix
(scenarios_lists)
mysql-connector-python/tests/__init__.py:1327
↓ 2 callersMethodget_schema_name
Returns the schema name. Returns: str: The schema name.
mysqlx-connector-python/lib/mysqlx/result.py:689
↓ 2 callersMethodget_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 callersMethodget_sql_mode
Gets the SQL mode.
mysql-connector-python/lib/mysql/connector/aio/abstracts.py:1015
↓ 2 callersFunctionget_stats_field
(pyver=None, myver=None)
mysql-connector-python/unittests.py:486
↓ 2 callersMethodget_string_types
Get the list of all string types
mysql-connector-python/lib/mysql/connector/constants.py:488
↓ 2 callersMethodget_timestamp_types
Get the list of all timestamp types
mysql-connector-python/lib/mysql/connector/constants.py:525
↓ 2 callersMethodget_wrapped_class
Gets the wrapped class name.
mysql-connector-python/lib/mysql/connector/opentelemetry/instrumentation.py:310
↓ 2 callersMethodhas_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 callersFunctionhexlify
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 callersMethodinfo_query
Send a query which only returns 1 row
mysql-connector-python/lib/mysql/connector/connection_cext.py:451
↓ 2 callersFunctioninit_mysql_server
Initialize a MySQL Server
mysqlx-connector-python/unittests.py:459
↓ 2 callersFunctioninit_mysql_server
Initialize a MySQL Server
mysql-connector-python/unittests.py:732
↓ 2 callersMethodinstrument_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 callersMethodis_closed
Return True if the connection to MySQL Server is closed.
mysql-connector-python/lib/mysql/connector/connection_cext.py:406
↓ 2 callersMethodis_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 callersMethodis_connected
Reports whether the connection to MySQL Server is available
mysql-connector-python/lib/mysql/connector/connection_cext.py:410
↓ 2 callersMethodis_control_char
Validates whether `char` is a control character or not.
mysql-connector-python/lib/mysql/connector/_scripting.py:115
↓ 2 callersMethodis_padded
Returns `True` if is padded. Returns: bool: Returns `True` if is padded.
mysqlx-connector-python/lib/mysqlx/result.py:785
↓ 2 callersMethodis_secure
Verifies if connection is secure. Returns: bool: Returns `True` if connection is secure.
mysqlx-connector-python/lib/mysqlx/connection.py:464
↓ 2 callersMethodis_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 callersFunctionis_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 callersMethodis_white_space_char
Validates whether `char` is a white-space character or not.
mysql-connector-python/lib/mysql/connector/_scripting.py:110
↓ 2 callersMethodisset_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 callersMethodlex
(self)
mysqlx-connector-python/lib/mysqlx/expr.py:542
↓ 2 callersMethodlex_number
(self, pos: int)
mysqlx-connector-python/lib/mysqlx/expr.py:473
↓ 2 callersFunctionlinux_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 callersFunctionlinux_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 callersFunctionlinux_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 callersMethodmake_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 callersMethodmake_stmt_fetch
Make a MySQL packet with Fetch Statement command
mysql-connector-python/lib/mysql/connector/protocol.py:445
↓ 2 callersFunctionmysql_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 callersFunctionmytopy_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 callersFunctionmytopy_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 callersFunctionmytopy_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 callersFunctionmytopy_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 callersMethodname
Returns the name of this MySQL server
mysqlx-connector-python/tests/mysqld.py:624
↓ 2 callersMethodnew_tracker
(self, new_session_name: str = "")
mysql-connector-python/tests/otel/collector.py:186
↓ 2 callersMethodnum_rows
Returns number of rows of current result set
mysql-connector-python/lib/mysql/connector/connection_cext.py:888
↓ 2 callersMethodopen_connection
(self)
mysql-connector-python/tests/test_network.py:275
↓ 2 callersMethodparen_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 callersMethodparse_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 callersMethodparse_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 callersFunctionparse_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 callersMethodparse_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 callersMethodparse_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 callersFunctionparse_trace_id
(obj: Dict)
mysql-connector-python/tests/otel/collector.py:49
↓ 2 callersMethodpredict
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 callersMethodpredict_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 callersMethodprepare_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 callersMethodprepare_stmt_send_long_data
Prepare long data for prepared statements Returns a string.
mysql-connector-python/lib/mysql/connector/protocol.py:1014
↓ 2 callersMethodpush_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 callersFunctionpython_characterset_name
Get Python character name based on MySQL character name */
mysql-connector-python/src/mysql_capi.c:159
↓ 2 callersFunctionpytomy_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 callersFunctionpytomy_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 callersFunctionpytomy_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 callersMethodquery_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 callersMethodquery_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 callersFunctionr
(n)
mysqlx-connector-python/docs/mysqlx/_themes/sphinx_rtd_theme/static/js/badge_only.js:1
↓ 2 callersMethodraise_socket_error
(self, err=errno.EPERM)
mysql-connector-python/tests/__init__.py:155
↓ 2 callersMethodread_auth_continue
Read authenticate continue. Raises: :class:`InterfaceError`: If the message type is not `Mys
mysqlx-connector-python/lib/mysqlx/protocol.py:673
↓ 2 callersFunctionread_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 callersFunctionread_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 callersMethodremove_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 callersMethodreset
Reset the connection. Resets the connection by re-authenticate.
mysqlx-connector-python/lib/mysqlx/connection.py:1494
↓ 2 callersMethodreset
(self, free: bool = True)
mysql-connector-python/lib/mysql/connector/cursor.py:1106
↓ 2 callersMethodrun
Run the command.
mysql-connector-python/cpydist/sdist.py:222
↓ 2 callersMethodrun_test
(self, cnxpool)
mysql-connector-python/tests/test_bugs.py:4926
↓ 2 callersMethodsend_auth_continue
Send authenticate continue. Args: auth_data (str): Authentication data.
mysqlx-connector-python/lib/mysqlx/protocol.py:692
↓ 2 callersMethodsend_delete
Send an delete statement. Args: statement (`Statement`): It can be :class:`mysqlx.RemoveStatement`
mysqlx-connector-python/lib/mysqlx/connection.py:1210
↓ 2 callersMethodsend_insert
Send an insert statement. Args: statement (`Statement`): It can be :class:`mysqlx.InsertStatement`
mysqlx-connector-python/lib/mysqlx/connection.py:1172
↓ 2 callersMethodsend_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 callersMethodsend_update
Send an delete statement. Args: statement (`Statement`): It can be :class:`mysqlx.ModifyStatement`
mysqlx-connector-python/lib/mysqlx/connection.py:1225
↓ 2 callersMethodsendall
Send data to the socket. Args: data (bytes): The data to be sent.
mysqlx-connector-python/lib/mysqlx/connection.py:321
↓ 2 callersMethodserialize_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 callersMethodset_database
Set the current database.
mysql-connector-python/lib/mysql/connector/aio/abstracts.py:885
↓ 2 callersMethodset_message
Sets the message. Args: msg (dict): Dictionary representing a message.
mysqlx-connector-python/lib/mysqlx/protobuf/__init__.py:486
↓ 2 callersMethodset_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 callersFunctionsetup_cmd_parser
()
automation/generate_tls_ciphers_file.py:77
↓ 2 callersFunctionsetup_cmd_parser
()
mysql-connector-python/tests/otel/context_propagation/sanity_check.py:141
↓ 2 callersMethodshutdown
Shut down the socket before closing it.
mysql-connector-python/lib/mysql/connector/network.py:468
↓ 2 callersMethodsql
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 callersFunctionstr_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 callersMethodswitch_to_compressed_mode
Enable network layer where transactions are made with compressed packets.
mysql-connector-python/lib/mysql/connector/network.py:464
↓ 2 callersMethodto_python
Convert MySQL data type to Python
mysql-connector-python/lib/mysql/connector/conversion.py:266
↓ 2 callersMethodtrack_connection
Tracks connection in order of close it when client.close() is invoke.
mysqlx-connector-python/lib/mysqlx/connection.py:1676
↓ 2 callersMethodtransform
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 callersMethodtry_connect
(self, tls_version, expected_ssl_version)
mysql-connector-python/tests/test_bugs.py:5131
↓ 2 callersMethoduninstall_ai_dependencies
()
mysql-connector-python/tests/ai/utilities.py:124
↓ 2 callersFunctionupdate_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 callersMethodupdate_plugin_config
Update the 'plugin_config' instance variable
mysql-connector-python/lib/mysql/connector/authentication.py:87
↓ 2 callersMethodupdate_plugin_config
Update the 'plugin_config' instance variable
mysql-connector-python/lib/mysql/connector/aio/authentication.py:90
↓ 2 callersMethodverify_result_sets
( test_obj: Union[tests.MySQLConnectorTests, tests.MySQLConnectorAioTestCase], script: str,
mysql-connector-python/tests/qa/test_qa_multi_statement.py:629
↓ 2 callersMethodwarning_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 callersFunctionxor_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 callersFunctionAddPyListToMessageRepeatedEnum
mysqlx-connector-python/src/mysqlxpb/mysqlxpb.cc:457
↓ 1 callersFunctionAddPyListToMessageRepeatedMessage
mysqlx-connector-python/src/mysqlxpb/mysqlxpb.cc:415
↓ 1 callersFunctionConvertPbToPyRepeated
mysqlx-connector-python/src/mysqlxpb/mysqlxpb.cc:178
↓ 1 callersFunctionConvertPbToPyRequired
mysqlx-connector-python/src/mysqlxpb/mysqlxpb.cc:80
← previousnext →801–900 of 5,006, ranked by callers