MCPcopy Index your code

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

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

↓ 9 callersMethod_set_compression_algorithms
(self, algorithms)
mysqlx-connector-python/tests/test_mysqlx_connection.py:2409
↓ 9 callersFunction_strioerror
Reformat the IOError error message. This function reformats the IOError error message.
mysql-connector-python/lib/mysql/connector/network.py:73
↓ 9 callersMethod_test_execute_cleanup
(self, cnx, tbl="myconnpy_cursor")
mysql-connector-python/tests/__init__.py:786
↓ 9 callersMethodassertGreater
(self, a, b, msg=None)
mysqlx-connector-python/tests/__init__.py:513
↓ 9 callersMethodauth_finalize
finalize the authentication process. Raises InterfaceError if the ervers_second_response is invalid. Returns True in successful auth
mysql-connector-python/lib/mysql/connector/plugins/authentication_ldap_sasl_client.py:486
↓ 9 callersMethodcomp_expr
(self)
mysqlx-connector-python/lib/mysqlx/expr.py:1191
↓ 9 callersFunctionfetch_rows
Execute query and fetch first result set This function will use connection cnx and execute the query. All rows are then returned as a list of
mysql-connector-python/tests/cext/test_cext_api.py:150
↓ 9 callersMethodfetchone
Return next row of a query result set. Raises: InterfaceError: If there is no result to fetch. Returns: tupl
mysql-connector-python/lib/mysql/connector/aio/cursor.py:715
↓ 9 callersMethodmake_command
Make a MySQL packet containing a command
mysql-connector-python/lib/mysql/connector/protocol.py:439
↓ 9 callersFunctionmytopy_string
Convert a string MySQL value to Python str or bytes. Convert, and decode if needed, a string MySQL value to Python str or bytes. @param dat
mysql-connector-python/src/mysql_capi_conversion.c:692
↓ 9 callersMethodoffset
Sets the number of items to skip. Args: offset (int): The number of items to skip. Returns: mysqlx.Filterabl
mysqlx-connector-python/lib/mysqlx/statement.py:548
↓ 9 callersMethodparse_column
Parse a MySQL column-packet.
mysql-connector-python/lib/mysql/connector/protocol.py:534
↓ 9 callersMethodremove_one
Removes a Document matching the Document ID. Args: doc_id (str): Document ID Returns: mysqlx.Result: Result
mysqlx-connector-python/lib/mysqlx/crud.py:648
↓ 9 callersMethodscore
Score the model using X/y data and a selected metric. If an 'id' column is defined in either dataframe, it will be used as the prima
mysql-connector-python/lib/mysql/ai/ml/model.py:674
↓ 8 callersFunctionCreateMessage
mysqlx-connector-python/src/mysqlxpb/mysqlxpb.cc:627
↓ 8 callersMethod_check_executed
Check if the statement has been executed. Raises: InterfaceError: If the statement has not been executed.
mysql-connector-python/lib/mysql/connector/aio/cursor.py:364
↓ 8 callersMethod_exec_main
(self, example, exp=None)
mysql-connector-python/tests/test_examples.py:59
↓ 8 callersMethod_prepare_password
Prepare and return password as as clear text. Returns: password (bytes): Prepared password.
mysql-connector-python/lib/mysql/connector/plugins/sha256_password.py:50
↓ 8 callersMethod_send_data
Send data to the MySQL server This method accepts a file-like object and sends its data as is to the MySQL server. If the send_empty_
mysql-connector-python/lib/mysql/connector/connection.py:522
↓ 8 callersMethod_test_execute_setup
(self, cnx, tbl="myconnpy_cursor", engine="InnoDB")
mysql-connector-python/tests/__init__.py:771
↓ 8 callersMethod_test_executemany
(self, cnx, cursor_class)
mysql-connector-python/tests/test_aio_cursor.py:204
↓ 8 callersMethod_test_fetchall
(self, cnx, cursor_class)
mysql-connector-python/tests/test_aio_cursor.py:321
↓ 8 callersMethod_test_fetchmany
(self, cnx, cursor_class)
mysql-connector-python/tests/test_aio_cursor.py:337
↓ 8 callersMethod_test_fetchone
(self, cnx, cursor_class)
mysql-connector-python/tests/test_aio_cursor.py:305
↓ 8 callersMethod_test_lock_contention
(self, lock_type_1, lock_type_2, lock_contention)
mysqlx-connector-python/tests/test_mysqlx_crud.py:696
↓ 8 callersMethod_test_tls_ciphersuites
(self, test_case_id: str)
mysqlx-connector-python/tests/qa/test_qa_ciphers.py:208
↓ 8 callersMethod_test_tls_ciphersuites
(self, test_case_id: str)
mysql-connector-python/tests/qa/test_qa_ciphers.py:293
↓ 8 callersMethodadd_or_replace_one
Upserts the Document matching the document ID with a new document provided. Args: doc_id (str): Document ID d
mysqlx-connector-python/lib/mysqlx/crud.py:617
↓ 8 callersMethodclear_attributes
Clears the list of query attributes on the connector's side.
mysql-connector-python/lib/mysql/connector/abstracts.py:3182
↓ 8 callersMethodcmd_stmt_close
Deallocate a prepared MySQL statement This method deallocates the prepared statement using the statement_id. Note that the MySQL serv
mysql-connector-python/lib/mysql/connector/connection.py:1680
↓ 8 callersFunctioncopy_dict
Make a defensive copy of a dictionary, or return an empty dict if None. Args: options: param dict or None Returns: dict
mysql-connector-python/lib/mysql/ai/utils/utils.py:73
↓ 8 callersMethodcursor
Instantiate and return a cursor. By default, MySQLCursor is returned. Depending on the options while connecting, a buffered and/or ra
mysql-connector-python/lib/mysql/connector/aio/connection.py:814
↓ 8 callersMethoddecision_function
Compute signed distance to the outlier threshold. Args: X: Samples to predict on. Returns: ndarray:
mysql-connector-python/lib/mysql/ai/ml/outlier.py:148
↓ 8 callersMethodexecute
( self, operation: str, params: Union[Sequence[Any], Dict[str, Any]] = (), map
mysql-connector-python/lib/mysql/connector/aio/cursor.py:620
↓ 8 callersMethodexecutemulti
( self, operation: str, params: Union[Sequence[Any], Dict[str, Any]] = (), map
mysql-connector-python/lib/mysql/connector/aio/cursor.py:663
↓ 8 callersFunctionflexible_params
Parse flexible parameters.
mysqlx-connector-python/lib/mysqlx/statement.py:67
↓ 8 callersMethodget_charset_info
Get character set information using charset name and/or collation Retrieves character set and collation information given character s
mysql-connector-python/lib/mysql/connector/constants.py:1040
↓ 8 callersFunctionget_random_name
Generate a random string name that satisfies a given condition. Args: condition: Callable that takes a generated name and returns Tr
mysql-connector-python/lib/mysql/ai/utils/utils.py:155
↓ 8 callersMethodinitialize_pool
Opens the connection pool and fill with MySQL database connections. This coroutine must be called after initializing an instance of MySQLConn
mysql-connector-python/lib/mysql/connector/aio/pooling.py:462
↓ 8 callersMethodparse_left_assoc_binary_op_expr
Given a `set' of types and an Expr-returning inner parser function, parse a left associate binary operator expression
mysqlx-connector-python/lib/mysqlx/expr.py:1121
↓ 8 callersMethodrelease_savepoint
Release a transaction savepoint with the given name. Args: name (string): The savepoint name.
mysqlx-connector-python/lib/mysqlx/connection.py:2446
↓ 8 callersMethodsetup_table
(self, cnx, tbl="myconnpy_cursor", engine="InnoDB")
mysql-connector-python/tests/__init__.py:844
↓ 8 callersFunctionsql_table_from_df
Create a new SQL table with a random name, and populate it with data from a DataFrame. If an 'id' column is defined in the dataframe, it wil
mysql-connector-python/lib/mysql/ai/utils/utils.py:400
↓ 8 callersFunctiontable_exists
Check whether a table exists in a specific schema. Args: cursor: MySQLCursorAbstract object to execute the query. schema_nam
mysql-connector-python/lib/mysql/ai/utils/utils.py:275
↓ 8 callersFunctiontemporary_sql_tables
Context manager to track and automatically clean up temporary SQL tables. Args: db_connection: Database connection object used to cr
mysql-connector-python/lib/mysql/ai/utils/utils.py:90
↓ 7 callersMethod_handle_eof
Handle a MySQL EOF packet This method handles a MySQL EOF packet. When the packet is found to be an Error packet, an error will be ra
mysql-connector-python/lib/mysql/connector/connection.py:598
↓ 7 callersMethod_handle_eof
Handle a MySQL EOF packet. This method handles a MySQL EOF packet. When the packet is found to be an Error packet, an error will be r
mysql-connector-python/lib/mysql/connector/aio/connection.py:384
↓ 7 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 example
mysql-connector-python/lib/mysql/connector/connection.py:566
↓ 7 callersMethod_kdestroy
(self)
mysql-connector-python/tests/test_authentication.py:563
↓ 7 callersMethod_kdestroy
(self)
mysql-connector-python/tests/test_aio_authentication.py:524
↓ 7 callersMethod_read_chunk
Read `size` bytes from the comm channel.
mysql-connector-python/lib/mysql/connector/aio/network.py:209
↓ 7 callersMethod_sort
Sets the sorting criteria. Args: *clauses: The expression strings defining the sort criteria. Returns: mysql
mysqlx-connector-python/lib/mysqlx/statement.py:328
↓ 7 callersMethod_test_cursor
(self, cur_conf)
mysql-connector-python/tests/qa/test_qa_vector_type.py:263
↓ 7 callersMethod_test_cursor
(self, cur_conf)
mysql-connector-python/tests/qa/test_qa_vector_type.py:709
↓ 7 callersMethod_test_execute
(self, cnx, cursor_class)
mysql-connector-python/tests/test_aio_cursor.py:50
↓ 7 callersMethod_test_execute_mapping_disabled
(self, **cursor_config)
mysql-connector-python/tests/qa/test_qa_multi_statement.py:692
↓ 7 callersMethod_test_execute_mapping_disabled
(self, **cursor_config)
mysql-connector-python/tests/qa/test_qa_multi_statement.py:886
↓ 7 callersMethod_test_execute_mapping_enabled
(self, **cursor_config)
mysql-connector-python/tests/qa/test_qa_multi_statement.py:695
↓ 7 callersMethod_test_execute_mapping_enabled
(self, **cursor_config)
mysql-connector-python/tests/qa/test_qa_multi_statement.py:892
↓ 7 callersMethod_vector_to_python
Converts a MySQL VECTOR value to a Python array.array type. Returns an array of floats if `value` isn't `None`, otherwise `None`.
mysql-connector-python/lib/mysql/connector/conversion.py:770
↓ 7 callersFunctionbuild_literal_expr
(value: MessageType)
mysqlx-connector-python/lib/mysqlx/expr.py:415
↓ 7 callersMethodcheck_call
( self, response: Optional[str], call_args: "CallArgs", query: str, params: tuple )
mysql-connector-python/tests/ai/genai/test_generation.py:64
↓ 7 callersMethodcmd_query
Sends a query to the MySQL server. This method sends the query to the MySQL server and returns the result. To **send multiple stateme
mysql-connector-python/lib/mysql/connector/abstracts.py:2041
↓ 7 callersFunctiondecode_from_bytes
Returns a string decoded from the given bytes. Args: value (bytes): The value to be decoded. encoding (str): The encoding. R
mysqlx-connector-python/lib/mysqlx/helpers.py:59
↓ 7 callersFunctiondrop_view
(schema, view_name)
mysqlx-connector-python/tests/test_mysqlx_crud.py:79
↓ 7 callersMethodembed_documents
Generate embeddings for a list of input texts using the MySQL ML embedding procedure. References: https://dev.mysql.com/
mysql-connector-python/lib/mysql/ai/genai/embedding.py:100
↓ 7 callersFunctionencode_to_bytes
Returns an encoded version of the string as a bytes object. Args: encoding (str): The encoding. Resturns: bytes: The encoded
mysqlx-connector-python/lib/mysqlx/helpers.py:47
↓ 7 callersMethodexecute_sql_scalar
Execute a SQL scalar. Args: sql (str): The SQL statement. Raises: :class:`mysqlx.InterfaceError`: If no data
mysqlx-connector-python/lib/mysqlx/connection.py:1273
↓ 7 callersFunctionget_auth_plugin
Return authentication class based on plugin name This function returns the class for the authentication plugin plugin_name. The returned clas
mysql-connector-python/lib/mysql/connector/plugins/__init__.py:127
↓ 7 callersMethodget_desc
(cls, name: str)
mysql-connector-python/lib/mysql/connector/constants.py:1145
↓ 7 callersMethodget_next_statement_id
Returns the next statement ID. Returns: int: A statement ID. .. versionadded:: 8.0.16
mysqlx-connector-python/lib/mysqlx/connection.py:1335
↓ 7 callersMethodhandle_unread_result
Check whether there is an unread result
mysql-connector-python/lib/mysql/connector/connection_cext.py:1115
↓ 7 callersFunctionis_unique_id
To test if the generated IDs are unique.
mysqlx-connector-python/tests/qa/test_qa_mysqlx_crud_collection_add.py:37
↓ 7 callersMethodnextset
(self)
mysql-connector-python/lib/mysql/connector/cursor_cext.py:601
↓ 7 callersMethodparse_eof
Parse a MySQL EOF-packet
mysql-connector-python/lib/mysql/connector/protocol.py:566
↓ 7 callersMethodread_message
Read message. Returns: mysqlx.protobuf.Message: MySQL X Protobuf Message.
mysqlx-connector-python/lib/mysqlx/protocol.py:229
↓ 7 callersMethodread_ok
Read OK. Raises: :class:`mysqlx.InterfaceError`: If unexpected message.
mysqlx-connector-python/lib/mysqlx/protocol.py:1153
↓ 7 callersMethodrun_test_retrieve_stored_type
( self, stm, test_values, expected_values, column, expected_type )
mysql-connector-python/tests/test_bugs.py:5633
↓ 7 callersMethodset_charset
Set character set
mysql-connector-python/lib/mysql/connector/conversion.py:88
↓ 7 callersMethodset_unicode
Set whether to use Unicode
mysql-connector-python/lib/mysql/connector/conversion.py:105
↓ 7 callersMethodsplit_script
Splits the given script text into a sequence of individual statements. The word DELIMITER and any of its lower and upper case combinations
mysql-connector-python/lib/mysql/connector/_scripting.py:213
↓ 6 callersMethod__str__
(self)
mysql-connector-python/tests/test_conversion.py:64
↓ 6 callersMethod_create_any
Create any. Args: arg (object): Arbitrary object. Returns: mysqlx.protobuf.Message: MySQL X Protobuf Message
mysqlx-connector-python/lib/mysqlx/protocol.py:366
↓ 6 callersMethod_fetch_row
Returns the next row in the result set Returns a tuple or None.
mysql-connector-python/lib/mysql/connector/cursor.py:726
↓ 6 callersFunction_get_insert_stmt
(tbl, cols)
mysql-connector-python/tests/test_mysql_datatypes.py:50
↓ 6 callersFunction_get_select_stmt
(tbl, cols)
mysql-connector-python/tests/test_mysql_datatypes.py:57
↓ 6 callersMethod_handle_eof
Handle end of reading the result Raises an Error on errors.
mysql-connector-python/lib/mysql/connector/cursor_cext.py:290
↓ 6 callersMethod_handle_eof
Handle EOF packet.
mysql-connector-python/lib/mysql/connector/aio/cursor.py:325
↓ 6 callersMethod_handle_result
Handles the result after statement execution
mysql-connector-python/lib/mysql/connector/cursor_cext.py:274
↓ 6 callersMethod_hmac
(self, password: bytes, salt: bytes)
mysql-connector-python/lib/mysql/connector/aio/plugins/authentication_ldap_sasl_client.py:101
↓ 6 callersMethod_hmac
(self, password: bytes, salt: bytes)
mysql-connector-python/lib/mysql/connector/plugins/authentication_ldap_sasl_client.py:101
↓ 6 callersMethod_recv_chunk
Read `size` bytes from the comm channel.
mysql-connector-python/lib/mysql/connector/network.py:175
↓ 6 callersMethod_remove_connections
Close all connections This method closes all connections. It returns the number of connections it closed. Used mostly for te
mysql-connector-python/lib/mysql/connector/pooling.py:673
↓ 6 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/cursor.py:206
↓ 6 callersMethod_set_next_pktnr
Increment packet id.
mysql-connector-python/lib/mysql/connector/network.py:158
↓ 6 callersMethod_setup
(self)
mysql-connector-python/tests/test_bugs.py:1621
↓ 6 callersMethod_string_to_python
Note that a SET is a string too, but using the FieldFlag we can see whether we have to split it. Returns string typed column
mysql-connector-python/lib/mysql/connector/conversion.py:725
↓ 6 callersMethod_test_callproc
(self, cnx, cursor_class)
mysql-connector-python/tests/test_aio_cursor.py:388
↓ 6 callersMethod_test_charset
(self, charset, data)
mysql-connector-python/tests/test_bugs.py:5547
↓ 6 callersMethod_test_executemulti
(self, cnx, cursor_class)
mysql-connector-python/tests/test_aio_cursor.py:158
← previousnext →201–300 of 5,006, ranked by callers