MCPcopy Index your code

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

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

↓ 3 callersMethod_parse_binary_values
Parse values from a binary result packet
mysql-connector-python/lib/mysql/connector/protocol.py:766
↓ 3 callersMethod_read_message
Read message. Args: result (Result): A `Result` based type object.
mysqlx-connector-python/lib/mysqlx/protocol.py:534
↓ 3 callersMethod_reset_samples
(self)
mysql-connector-python/tests/test_bugs.py:848
↓ 3 callersMethod_send_pkt
Compress packet and write it to the comm channel.
mysql-connector-python/lib/mysql/connector/network.py:291
↓ 3 callersMethod_set_next_pktnr
Set the given packet id, if any, else increment packet id.
mysql-connector-python/lib/mysql/connector/aio/network.py:184
↓ 3 callersMethod_set_pool_size
Set the size of the pool This method sets the size of the pool but it will not resize the pool. Raises an AttributeError when the po
mysql-connector-python/lib/mysql/connector/pooling.py:538
↓ 3 callersMethod_setup
(self)
mysql-connector-python/tests/test_bugs.py:342
↓ 3 callersMethod_setup
(self)
mysql-connector-python/tests/test_bugs.py:1956
↓ 3 callersFunction_strioerror
Reformat the IOError error message. This function reformats the IOError error message.
mysql-connector-python/lib/mysql/connector/aio/network.py:73
↓ 3 callersMethod_test_change_user
Helper method for testing cnx.cmd_change_user() with MFA.
mysql-connector-python/tests/test_aio_authentication.py:1219
↓ 3 callersMethod_test_charset
(self, charset, data)
mysql-connector-python/tests/test_bugs.py:2254
↓ 3 callersMethod_test_charset
(self, charset, data)
mysql-connector-python/tests/test_bugs.py:4197
↓ 3 callersMethod_test_connection
Helper method for testing connection with MFA.
mysql-connector-python/tests/test_authentication.py:1222
↓ 3 callersMethod_test_connection
Helper method for testing connection with MFA.
mysql-connector-python/tests/test_aio_authentication.py:1188
↓ 3 callersMethod_test_execute
(self, map_results: bool, **cursor_config)
mysql-connector-python/tests/qa/test_qa_multi_statement.py:663
↓ 3 callersMethod_test_named_parameters_are_transmitted
Check the query attributes (named parameters) are transmitted.
mysql-connector-python/tests/test_connection.py:4003
↓ 3 callersMethod_test_notice
(self, warning)
mysqlx-connector-python/tests/test_mysqlx_connection.py:2700
↓ 3 callersMethod_test_tls_ciphersuites
( self, tls_versions: Optional[list[str]], test_case: tuple, verify: bool = False )
mysql-connector-python/tests/qa/test_qa_ciphers.py:513
↓ 3 callersMethod_time_to_mysql
Converts a time instance to a string suitable for MySQL. The returned string has format: %H:%M:%S[.%f] If the instance isn't
mysql-connector-python/lib/mysql/connector/conversion.py:412
↓ 3 callersMethod_time_to_python
Converts TIME column value to python datetime.time value type. Converts the TIME column MySQL type passed as bytes to a python dateti
mysql-connector-python/lib/mysql/connector/conversion.py:609
↓ 3 callersMethod_write_pkt
Compress packet and write it to the comm channel.
mysql-connector-python/lib/mysql/connector/aio/network.py:357
↓ 3 callersMethodarray_insert
Insert a value into the specified array in documents of a collection. Args: field (string): A document path that identifi
mysqlx-connector-python/lib/mysqlx/statement.py:895
↓ 3 callersMethodas_str
Serialize :class:`mysqlx.DbDoc` to a JSON formatted ``str``. Returns: str: A JSON formatted ``str`` representation of the documen
mysqlx-connector-python/lib/mysqlx/dbdoc.py:112
↓ 3 callersMethodautocommit
Get whether autocommit is on or off
mysql-connector-python/lib/mysql/connector/connection_cext.py:205
↓ 3 callersMethodbind
Binds value(s) to a specific placeholder(s). Args: *args: The name of the placeholder and the value to bind. A
mysqlx-connector-python/lib/mysqlx/statement.py:567
↓ 3 callersFunctionbuild_bool_scalar
(value: bool)
mysqlx-connector-python/lib/mysqlx/expr.py:401
↓ 3 callersFunctionbuild_bytes_scalar
(value: bytes)
mysqlx-connector-python/lib/mysqlx/expr.py:408
↓ 3 callersFunctionbuild_int_scalar
(value: int)
mysqlx-connector-python/lib/mysqlx/expr.py:378
↓ 3 callersMethodcheck_args
(self, function, supported_arguments)
mysql-connector-python/tests/__init__.py:691
↓ 3 callersFunctioncheck_tls_versions_support
Check whether we can connect with given TLS version Attempts a connection to a server using a specific TLS version but does not verify which
mysql-connector-python/tests/__init__.py:1248
↓ 3 callersMethodclose
(self)
mysql-connector-python/lib/mysql/connector/aio/cursor.py:166
↓ 3 callersMethodclose_connection
Closes the connection. This method closes the socket.
mysqlx-connector-python/lib/mysqlx/connection.py:1468
↓ 3 callersMethodclose_connection
Close the connection.
mysql-connector-python/lib/mysql/connector/aio/network.py:568
↓ 3 callersMethodcmd_debug
Send the DEBUG command This method sends the DEBUG command to the MySQL server, which requires the MySQL user to have SUPER privilege
mysql-connector-python/lib/mysql/connector/connection.py:1146
↓ 3 callersMethodcmd_shutdown
Shut down the MySQL Server This method sends the SHUTDOWN command to the MySQL server. The `shutdown_type` is not used, and it's kept
mysql-connector-python/lib/mysql/connector/connection.py:1112
↓ 3 callersMethodcmd_stmt_reset
Reset data for prepared statement sent as long data The result is a dictionary with OK packet information. Returns a dict()
mysql-connector-python/lib/mysql/connector/connection.py:1744
↓ 3 callersMethodcompress
Compresses data and returns it. Args: data (str, bytes or buffer object): Data to be compressed. Returns: by
mysqlx-connector-python/lib/mysqlx/protocol.py:122
↓ 3 callersMethodcreate_connection
(alias=DEFAULT_DB_ALIAS)
mysql-connector-python/tests/test_django.py:490
↓ 3 callersMethodcursor
Instantiates and returns a cursor using C Extension By default, CMySQLCursor is returned. Depending on the options while connecting,
mysql-connector-python/lib/mysql/connector/connection_cext.py:802
↓ 3 callersMethoddb_connect
(self)
mysql-connector-python/tests/test_pep249.py:57
↓ 3 callersMethoddocument_field
(self)
mysqlx-connector-python/lib/mysqlx/expr.py:790
↓ 3 callersMethoddocument_path
Parse a JSON-style document path, like WL#7909, but prefix by @. instead of $. We parse this as a string because the protocol doesn't
mysqlx-connector-python/lib/mysqlx/expr.py:811
↓ 3 callersMethoddrain
(self)
mysql-connector-python/tests/__init__.py:235
↓ 3 callersMethodembed_query
Generate an embedding for a single text string. References: https://dev.mysql.com/doc/heatwave/en/mys-hwgenai-ml-embed-r
mysql-connector-python/lib/mysql/ai/genai/embedding.py:168
↓ 3 callersFunctionend_span
Ends span.
mysql-connector-python/lib/mysql/connector/opentelemetry/instrumentation.py:97
↓ 3 callersMethodensure_up
(self)
mysql-connector-python/tests/test_bugs.py:2086
↓ 3 callersFunctionfetch_fields
Fetch column information using the MySQL result. Fetch the column information using the given MySQL result and the number of fields. The return
mysql-connector-python/src/mysql_capi.c:217
↓ 3 callersMethodfetchone
Return next row of a query result set. Returns: tuple or None: A row from query result set.
mysql-connector-python/lib/mysql/connector/cursor_cext.py:722
↓ 3 callersMethodfinalize_options
Finalize the options.
mysqlx-connector-python/cpydist/__init__.py:493
↓ 3 callersMethodfinalize_options
Finalize the options.
mysql-connector-python/cpydist/__init__.py:802
↓ 3 callersMethodfrom_message
Creates a new message, initialized with parsed data and returns a :class:`mysqlx.protobuf.Message` object. Args: msg_type
mysqlx-connector-python/lib/mysqlx/protobuf/__init__.py:584
↓ 3 callersMethodfrom_texts
Construct and populate a MyVectorStore instance from raw texts and metadata. Args: texts: List of strings to vectorize a
mysql-connector-python/lib/mysql/ai/genai/vector_store.py:265
↓ 3 callersMethodget_by_name
Get character set by name. Args: name: The charset name. Returns: Charset: The Charset dataclass instance.
mysql-connector-python/lib/mysql/connector/aio/charsets.py:135
↓ 3 callersMethodget_columns
Returns the list of columns. Returns: `list`: The list of columns. .. versionadded:: 8.0.12
mysqlx-connector-python/lib/mysqlx/result.py:1108
↓ 3 callersMethodget_expected_sql_for_embed
( self, qualified_table_name: str, texts: List[str], options: Optional[dict] =
mysql-connector-python/tests/ai/genai/test_embedding.py:80
↓ 3 callersMethodget_key_columns
Return a list of (column_name, referenced_table_name, referenced_column_name) for all key columns in the given table.
mysql-connector-python/lib/mysql/connector/django/introspection.py:300
↓ 3 callersFunctionget_local_infile_filenames
Scans the MySQL script looking for `filenames` (one for each `LOCAL INFILE` statement found). Arguments: script: a MySQL script that
mysql-connector-python/lib/mysql/connector/_scripting.py:385
↓ 3 callersMethodget_server_version
Gets the MySQL version. Returns: The MySQL server version as a tuple. If not previously connected, it will return `No
mysql-connector-python/lib/mysql/connector/abstracts.py:954
↓ 3 callersMethodget_table_description
Return a description of the table with the DB-API cursor.description interface."
mysql-connector-python/lib/mysql/connector/django/introspection.py:138
↓ 3 callersMethodget_tables
Returns a list of tables for this schema. Returns: `list`: List of Table objects.
mysqlx-connector-python/lib/mysqlx/crud.py:230
↓ 3 callersMethodget_view
Returns the view of the given name for this schema. Returns: mysqlx.View: View object.
mysqlx-connector-python/lib/mysqlx/crud.py:264
↓ 3 callersFunctionimport_object
Import an object from a fully qualified module path. Args: obj (str): A string representing the fully qualified name of the object.
mysql-connector-python/lib/mysql/connector/utils.py:655
↓ 3 callersMethodinfo_query
Sends a query which only returns 1 row. Shortcut for: ``` cursor = self.cursor(buffered=True) cursor.execute(query)
mysql-connector-python/lib/mysql/connector/abstracts.py:1151
↓ 3 callersMethodinitialize_options
Initialize the options.
mysqlx-connector-python/cpydist/__init__.py:488
↓ 3 callersMethodinitialize_options
Initialize the options.
mysql-connector-python/cpydist/__init__.py:797
↓ 3 callersFunctionintread
Unpacks the given buffer to an integer
mysql-connector-python/lib/mysql/connector/utils.py:87
↓ 3 callersFunctionis_decimal_instance
Check whether the type of object is a decimal. Check whether the object passed via parameter is an instance of decimal class. @param obj
mysql-connector-python/src/mysql_capi_conversion.c:62
↓ 3 callersMethodis_number_signed
Returns `True` if is a number signed. Returns: bool: Returns `True` if is a number signed.
mysqlx-connector-python/lib/mysqlx/result.py:777
↓ 3 callersMethodis_server_disconnected
Verify if the session has been disconnect from the server. Returns: bool: `True` if the connection has been closed from the serve
mysqlx-connector-python/lib/mysqlx/connection.py:1363
↓ 3 callersMethodnew_message
Create new Protobuf message. Args: name (str): Message type name. Returns: object: Protobuf
mysqlx-connector-python/lib/mysqlx/protobuf/__init__.py:279
↓ 3 callersMethodoptionxform
Converts option strings Converts option strings to lower case and replaces dashes(-) with underscores(_) if keep_dashes variable is s
mysql-connector-python/lib/mysql/connector/optionfiles.py:157
↓ 3 callersMethodparse_binary_prepare_ok
Parse a MySQL Binary Protocol OK packet.
mysql-connector-python/lib/mysql/connector/protocol.py:863
↓ 3 callersMethodparse_statistics
Parse the statistics packet
mysql-connector-python/lib/mysql/connector/protocol.py:587
↓ 3 callersFunctionpytomy_decimal
Convert a Python decimal.Decimal to MySQL DECIMAL. Convert a Python decimal.Decimal to MySQL DECIMAL. This function also removes the 'L' suffix f
mysql-connector-python/src/mysql_capi_conversion.c:665
↓ 3 callersMethodquote
Quote the parameters for commands. General rules: o numbers are returns as bytes using ascii codec o None is returned as
mysql-connector-python/lib/mysql/connector/conversion.py:221
↓ 3 callersMethodread_auth_ok
Read authenticate OK. Raises: :class:`mysqlx.InterfaceError`: If message type is `Mysqlx.Error`.
mysqlx-connector-python/lib/mysqlx/protocol.py:704
↓ 3 callersMethodreconnect
Attempts to reconnect to the MySQL server. The argument `attempts` should be the number of times a reconnect is tried. The `delay` ar
mysql-connector-python/lib/mysql/connector/aio/abstracts.py:1541
↓ 3 callersMethodrecv
(self, bufsize=4096, flags=0)
mysqlx-connector-python/tests/__init__.py:150
↓ 3 callersMethodremove_connections
Removes all the connections from the pool.
mysqlx-connector-python/lib/mysqlx/connection.py:1595
↓ 3 callersMethodreset_exec_counter
Resets the number of times this statement has been executed.
mysqlx-connector-python/lib/mysqlx/statement.py:241
↓ 3 callersMethodrun
Run the command.
mysqlx-connector-python/cpydist/sdist.py:222
↓ 3 callersMethodrun
(self, test)
mysql-connector-python/unittests.py:621
↓ 3 callersMethodrun
(check_instrumented: bool = False, iters: int = 100)
mysql-connector-python/tests/otel/test_instrumentation.py:1100
↓ 3 callersMethodrun_bench
(self, check_instrumented: bool = False, iters: int = 100)
mysql-connector-python/tests/otel/test_instrumentation.py:1056
↓ 3 callersMethodsend_auth_start
Send authenticate start. Args: method (str): Message method. auth_data (Optional[str]): Authentication data.
mysqlx-connector-python/lib/mysqlx/protocol.py:649
↓ 3 callersMethodsend_prepare_execute
Send execute statement. Args: msg_type (str): Message ID string. msg (mysqlx.protobuf.Message): MySQL X Prot
mysqlx-connector-python/lib/mysqlx/protocol.py:785
↓ 3 callersMethodserialize_to_string
Serializes a message to a string. Returns: str: A string representing a message containing parsed data.
mysqlx-connector-python/lib/mysqlx/protobuf/__init__.py:505
↓ 3 callersMethodsetUp
(self)
mysql-connector-python/tests/test_bugs.py:492
↓ 3 callersMethodsetUp
(self)
mysql-connector-python/tests/otel/test_instrumentation.py:213
↓ 3 callersMethodset_autocommit
Toggle autocommit.
mysql-connector-python/lib/mysql/connector/aio/abstracts.py:956
↓ 3 callersMethodset_login
Sets login information for MySQL. Sets the username and/or password for the user connecting to the MySQL Server. Args: u
mysql-connector-python/lib/mysql/connector/abstracts.py:1169
↓ 3 callersMethodset_mysql_version
Set the MySQL major version and change the charset mapping if is 5.7. Args: version (tuple): MySQL version tuple.
mysql-connector-python/lib/mysql/connector/constants.py:980
↓ 3 callersMethodset_server_disconnected
Set the disconnection message from the server. Args: reason (str): disconnection reason from the server.
mysqlx-connector-python/lib/mysqlx/connection.py:1354
↓ 3 callersFunctionsetup
(app)
mysqlx-connector-python/docs/mysqlx/_themes/sphinx_rtd_theme/__init__.py:42
↓ 3 callersMethodsimilarity_search
Search for and return the most similar documents in the store to the given query. Args: query: String query to embed and
mysql-connector-python/lib/mysql/ai/genai/vector_store.py:359
↓ 3 callersMethodtearDown
(self)
mysql-connector-python/tests/test_bugs.py:384
↓ 3 callersMethodtearDown
(self)
mysql-connector-python/tests/otel/test_instrumentation.py:229
↓ 3 callersFunctionwait_for_connections
Waits for current connections to be closed or be the expected
mysqlx-connector-python/tests/test_mysqlx_pooling.py:74
↓ 3 callersFunctionwarn_ciphersuites_deprecated
Emits a warning if a deprecated cipher is being utilized. Args: cipher: Must be ingested as OpenSSL name. tls_versions: TLS versi
mysql-connector-python/lib/mysql/connector/utils.py:686
↓ 3 callersFunctionwarn_tls_version_deprecated
Emits a warning if a deprecated TLS version is being utilized. Args: tls_versions: TLS version to check. Raises: Deprecation
mysql-connector-python/lib/mysql/connector/utils.py:706
← previousnext →501–600 of 5,006, ranked by callers