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
↓ 23 callers
Method
drop_schema
Drops the schema with the specified name. Args: name (string): The name of the Schema object to be retrieved.
mysqlx-connector-python/lib/mysqlx/connection.py:2373
↓ 23 callers
Function
get_mysql_exception
Get the exception matching the MySQL error This function will return an exception based on the SQLState. The given message will be passed on
mysql-connector-python/lib/mysql/connector/errors.py:273
↓ 23 callers
Method
read
(self, size=0)
mysql-connector-python/tests/__init__.py:228
↓ 22 callers
Method
get_connection
Gets a connection from the pool. This method returns an PooledMySQLConnection instance which has a reference to the pool that created
mysql-connector-python/lib/mysql/connector/pooling.py:637
↓ 22 callers
Method
wait_down
Wait until the MySQL server is down This method can be used to wait until the MySQL server has stopped. True is returned when the MyS
mysql-connector-python/tests/mysqld.py:819
↓ 22 callers
Method
wait_up
Wait until the MySQL server is up This method can be used to wait until the MySQL server is started. True is returned when the MySQL
mysql-connector-python/tests/mysqld.py:801
↓ 21 callers
Function
connect
Creates a MySQL connection object. In its simpliest form, `connect()` will open a connection to a MySQL server and return a `MySQLConnectionA
mysql-connector-python/lib/mysql/connector/aio/pooling.py:196
↓ 21 callers
Method
execute
Executes the given operation This wrapper method around the execute()-method of the cursor is mainly needed to re-raise using differe
mysql-connector-python/lib/mysql/connector/django/base.py:170
↓ 21 callers
Method
get_type
Returns the column type. Returns: int: The column type.
mysqlx-connector-python/lib/mysqlx/result.py:737
↓ 21 callers
Method
predict
Generate model predictions using DataFrame input. If an 'id' column is defined in either dataframe, it will be used as the primary k
mysql-connector-python/lib/mysql/ai/ml/model.py:618
↓ 21 callers
Method
remove
Remove the topdir of the MySQL server
mysql-connector-python/tests/mysqld.py:773
↓ 20 callers
Method
_drop_collection_if_exists
(self, name)
mysqlx-connector-python/tests/qa/test_qa_mysqlx_crud_collection_remove.py:40
↓ 20 callers
Method
_verify_index_creation
(self, coll_name, index_name)
mysqlx-connector-python/tests/qa/test_qa_mysqlx_crud_collection_index.py:46
↓ 20 callers
Method
get_attributes
Gets a list of query attributes from the connector's side. Returns: List of existing query attributes.
mysql-connector-python/lib/mysql/connector/abstracts.py:3132
↓ 20 callers
Function
get_exception
Returns an exception object based on the MySQL error Returns an exception object based on the MySQL error in the given packet. Returns a
mysql-connector-python/lib/mysql/connector/errors.py:315
↓ 20 callers
Method
get_one
Returns a Document matching the Document ID. Args: doc_id (str): Document ID Returns: mysqlx.DbDoc: The Docu
mysqlx-connector-python/lib/mysqlx/crud.py:634
↓ 20 callers
Method
rollback
Rollback current transaction
mysql-connector-python/lib/mysql/connector/connection.py:1458
↓ 20 callers
Method
rollback_to
Rollback to a transaction savepoint with the given name. Args: name (string): The savepoint name.
mysqlx-connector-python/lib/mysqlx/connection.py:2432
↓ 19 callers
Method
cmd_query
( self, query: StrOrBytes, raw: Optional[bool] = None, buffered: bool = False,
mysql-connector-python/lib/mysql/connector/connection_cext.py:753
↓ 19 callers
Method
get_column_name
Returns the column name. Returns: str: The column name.
mysqlx-connector-python/lib/mysqlx/result.py:713
↓ 18 callers
Method
_get_cursor
(self, cnx=None)
mysql-connector-python/tests/cext/test_cext_cursor.py:69
↓ 18 callers
Method
connect
(self)
mysql-connector-python/lib/mysql/connector/aio/connection.py:131
↓ 18 callers
Function
format_value_sql
Convert a Python value into its SQL-compatible string representation and parameters. Args: value: The value to format. Returns:
mysql-connector-python/lib/mysql/ai/utils/utils.py:179
↓ 18 callers
Method
is_connected
Check if the socket is connected. Return: bool: Returns `True` if the socket is connected to MySQL server.
mysql-connector-python/lib/mysql/connector/aio/network.py:583
↓ 18 callers
Function
read_option_files
Read option files for connection parameters. Checks if connection arguments contain option file arguments, and then reads option files a
mysql-connector-python/lib/mysql/connector/optionfiles.py:50
↓ 17 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/cursor.py:337
↓ 17 callers
Method
_send_cmd
Send a command to the MySQL server This method sends a command with an optional argument. If packet is not None, it will be sent and
mysql-connector-python/lib/mysql/connector/connection.py:478
↓ 17 callers
Method
cmd_query_iter
Send one or more statements to the MySQL server Similar to the cmd_query method, but instead returns a generator object to iterate th
mysql-connector-python/lib/mysql/connector/connection.py:1005
↓ 17 callers
Function
connect
Creates or gets a MySQL connection object. In its simpliest form, `connect()` will open a connection to a MySQL server and return a `MySQLCon
mysql-connector-python/lib/mysql/connector/pooling.py:202
↓ 17 callers
Function
lc_int
Takes an unsigned integer and packs it as bytes, with the information of how much bytes the encoded int takes.
mysql-connector-python/lib/mysql/connector/utils.py:182
↓ 17 callers
Method
set_connection_socket
Replace connection socket reader and writer. Asyncio SSL keep-alive connections raise errors after loop close. See https://github.com
mysql-connector-python/tests/__init__.py:238
↓ 16 callers
Method
cmd_change_user
Change the current logged in user This method allows to change the current logged in user information. The result is a dictionary wit
mysql-connector-python/lib/mysql/connector/connection.py:1170
↓ 16 callers
Method
disconnect
Disconnect from server.
mysqlx-connector-python/lib/mysqlx/connection.py:1380
↓ 16 callers
Method
get_row
Get the next rows returned by the MySQL server This method gets one row from the result set after sending, for example, the query com
mysql-connector-python/lib/mysql/connector/connection.py:765
↓ 16 callers
Method
get_table_name
Returns the table name. Returns: str: The table name.
mysqlx-connector-python/lib/mysqlx/result.py:697
↓ 16 callers
Function
raise_with_session
Set the error indicator using a MySQL session. Set the error indicator using the MySQL error returned by the MySQL server. When exc_type is NU
mysql-connector-python/src/exceptions.c:56
↓ 16 callers
Function
raise_with_string
Set the error indicator using a string. Set the error indicator using the given string. When exc_type is NULL, MySQLInterfaceError will be use
mysql-connector-python/src/exceptions.c:175
↓ 16 callers
Method
stored_results
Returns an iterator for stored results This method returns an iterator over results which are stored when callproc() is called. The i
mysql-connector-python/lib/mysql/connector/cursor.py:540
↓ 15 callers
Method
_drop_collection_if_exists
(self, name)
mysqlx-connector-python/tests/qa/test_qa_mysqlx_collection_replace_remove_one.py:41
↓ 15 callers
Method
create_schema
Creates a schema on the database and returns the corresponding object. Args: name (string): A string value indicating the
mysqlx-connector-python/lib/mysqlx/connection.py:2383
↓ 15 callers
Method
sendall
(self, string, flags=0)
mysqlx-connector-python/tests/__init__.py:185
↓ 14 callers
Function
escape
Escapes special characters as they are expected to be when MySQL receives them. As found in MySQL source mysys/charset.c Args: va
mysqlx-connector-python/lib/mysqlx/helpers.py:85
↓ 14 callers
Function
varint_from_protobuf_stream
(payload: bytes)
mysqlx-connector-python/lib/mysqlx/result.py:77
↓ 14 callers
Method
write_message
Write message. Args: msg_type (int): The message type. msg (mysqlx.protobuf.Message): MySQL X Protobuf Message.
mysqlx-connector-python/lib/mysqlx/protocol.py:281
↓ 13 callers
Method
__init__
(self, expr: Any)
mysqlx-connector-python/lib/mysqlx/statement.py:63
↓ 13 callers
Method
_check_executed
Check if the statement has been executed. Raises an error if the statement has not been executed.
mysql-connector-python/lib/mysql/connector/cursor.py:238
↓ 13 callers
Method
_delete_model
Deletes the model from the model catalog if present Raises: DatabaseError: If a database connection issu
mysql-connector-python/lib/mysql/ai/ml/base.py:115
↓ 13 callers
Method
_handle_ok
Handle a MySQL OK packet This method handles a MySQL OK packet. When the packet is found to be an Error packet, an error will be rais
mysql-connector-python/lib/mysql/connector/connection.py:581
↓ 13 callers
Method
check_running
Check if MySQL server is running Check if the MySQL server is running using the given pid, or when not specified, using the PID found
mysql-connector-python/tests/mysqld.py:786
↓ 13 callers
Method
execute_nonquery
Execute a non query command. Args: namespace (str): The namespace. cmd (str): The command. raise_on_fail
mysqlx-connector-python/lib/mysqlx/connection.py:1240
↓ 13 callers
Method
info_query
Send a query which only returns 1 row
mysql-connector-python/lib/mysql/connector/connection.py:1477
↓ 13 callers
Method
unset
Removes attributes from documents in a collection. Args: doc_paths (list): The list of document paths of the attributes to be
mysqlx-connector-python/lib/mysqlx/statement.py:877
↓ 12 callers
Method
_have_unread_result
Check whether there is an unread result
mysql-connector-python/lib/mysql/connector/cursor.py:231
↓ 12 callers
Method
_send_cmd
Send a command to the MySQL server. This method sends a command with an optional argument. If packet is not None, it will be sent and
mysql-connector-python/lib/mysql/connector/aio/connection.py:607
↓ 12 callers
Method
_test_tls_versions
(self, test_case_id: str)
mysql-connector-python/tests/qa/test_qa_ciphers.py:237
↓ 12 callers
Method
add_connection
Adds a connection to the pool. This method instantiates a `MySQLConnection` using the configuration passed when initializing the `MyS
mysql-connector-python/lib/mysql/connector/pooling.py:586
↓ 12 callers
Method
auth_continue
Continue with the Kerberos TGT service request. With the TGT authentication service given response generate a TGT service request. Th
mysql-connector-python/lib/mysql/connector/plugins/authentication_kerberos_client.py:356
↓ 12 callers
Method
check_call
( self, call_args_list: List, expected_calls: List[Tuple[str, list]], )
mysql-connector-python/tests/ai/ml/test_model.py:100
↓ 12 callers
Method
cmd_init_db
Change the current database This method changes the current (default) database by sending the INIT_DB command. The result is a dictio
mysql-connector-python/lib/mysql/connector/connection.py:868
↓ 12 callers
Method
cmd_refresh
(self, options: int)
mysql-connector-python/lib/mysql/connector/connection.py:1065
↓ 12 callers
Method
execute
( self, operation: str, params: ParamsSequenceOrDictType = (), map_results: bo
mysql-connector-python/lib/mysql/connector/cursor_cext.py:300
↓ 12 callers
Method
fetchall
Return all rows of a query result set. Returns: list: A list of tuples with all rows of a query result set.
mysql-connector-python/lib/mysql/connector/aio/cursor.py:728
↓ 12 callers
Method
get_connection
Returns the underlying connection. Returns: mysqlx.connection.Connection: The connection object.
mysqlx-connector-python/lib/mysqlx/connection.py:2313
↓ 12 callers
Method
next_char_is
(self, key: int, char: str)
mysqlx-connector-python/lib/mysqlx/expr.py:470
↓ 12 callers
Method
order_by
Sets the order by criteria. Args: *clauses: The expression strings defining the order by criteria. Returns:
mysqlx-connector-python/lib/mysqlx/statement.py:1164
↓ 12 callers
Method
ping
Check availability of the MySQL server When reconnect is set to True, one or more attempts are made to try to reconnect to the MySQL
mysql-connector-python/lib/mysql/connector/connection.py:1343
↓ 12 callers
Function
quote_identifier
Quote the given identifier with backticks, converting backticks (`) in the identifier name with the correct escape sequence (``) unless the id
mysqlx-connector-python/lib/mysqlx/helpers.py:124
↓ 12 callers
Function
raise_with_stmt
Set the error indicator using a prepare statement. Set the error indicator using the MySQL error returned when using prepared statements. When
mysql-connector-python/src/exceptions.c:116
↓ 11 callers
Function
_convert_forward_slash
Convert forward slashes with backslashes This function replaces forward slashes with backslashes. This is necessary using Microsoft Windows f
mysqlx-connector-python/tests/mysqld.py:66
↓ 11 callers
Function
_convert_forward_slash
Convert forward slashes with backslashes This function replaces forward slashes with backslashes. This is necessary using Microsoft Windows f
mysql-connector-python/tests/mysqld.py:66
↓ 11 callers
Method
_handle_eof
Handle EOF packet
mysql-connector-python/lib/mysql/connector/cursor.py:719
↓ 11 callers
Method
close
(self)
mysql-connector-python/lib/mysql/connector/connection_cext.py:381
↓ 11 callers
Method
cmd_query
( self, query: StrOrBytes, raw: bool = False, buffered: bool = False,
mysql-connector-python/lib/mysql/connector/aio/connection.py:1021
↓ 11 callers
Method
cmd_stmt_prepare
Prepare a MySQL statement This method will send the PREPARE command to MySQL together with the given statement. Returns a di
mysql-connector-python/lib/mysql/connector/connection.py:1569
↓ 11 callers
Function
convert_to_df
Convert input data to a pandas DataFrame if necessary. Args: arr: Input data as a pandas DataFrame, NumPy ndarray, pandas Series, or
mysql-connector-python/lib/mysql/ai/utils/utils.py:538
↓ 11 callers
Function
create_view
(schema, view_name, defined_as)
mysqlx-connector-python/tests/test_mysqlx_crud.py:68
↓ 11 callers
Method
get_by_id
Get character set by ID. Args: charset_id: The charset ID. Returns: Charset: The Charset dataclass instance.
mysql-connector-python/lib/mysql/connector/aio/charsets.py:107
↓ 11 callers
Method
group_by
Sets a grouping criteria for the resultset. Args: *fields: The string expressions identifying the grouping criteria. Ret
mysqlx-connector-python/lib/mysqlx/statement.py:1066
↓ 10 callers
Method
_do_auth
Authenticate with the MySQL server Authentication happens in two parts. We first send a response to the handshake. The MySQL server w
mysql-connector-python/lib/mysql/connector/connection.py:263
↓ 10 callers
Method
_expr
(self, reparse: bool = False)
mysqlx-connector-python/lib/mysqlx/expr.py:1275
↓ 10 callers
Method
_handle_binary_result
Handle a MySQL Result This method handles a MySQL result, for example, after sending the query command. OK and EOF packets will be ha
mysql-connector-python/lib/mysql/connector/connection.py:1504
↓ 10 callers
Method
_otel_connect
(self, **kwargs)
mysql-connector-python/tests/otel/test_instrumentation.py:424
↓ 10 callers
Method
_test_tls_versions
(self, test_case_id: str)
mysqlx-connector-python/tests/qa/test_qa_ciphers.py:186
↓ 10 callers
Method
check_running
Check if MySQL server is running Check if the MySQL server is running using the given pid, or when not specified, using the PID found
mysqlx-connector-python/tests/mysqld.py:786
↓ 10 callers
Method
close_connection
Close the socket.
mysql-connector-python/lib/mysql/connector/network.py:476
↓ 10 callers
Method
fetchall
Return all rows of a query result set. Returns: list: A list of tuples with all rows of a query result set.
mysql-connector-python/lib/mysql/connector/cursor_cext.py:662
↓ 10 callers
Method
get_default_schema
Retrieves a Schema object from the current session by the schema name configured in the connection settings. Returns: mys
mysqlx-connector-python/lib/mysqlx/connection.py:2343
↓ 10 callers
Method
get_info
(cls, setid: int)
mysql-connector-python/lib/mysql/connector/constants.py:1149
↓ 10 callers
Method
instrument
Instrument the library. Args: trace_module: reference to the 'trace' module from opentelemetry. tracer_provider (opti
mysql-connector-python/lib/mysql/connector/opentelemetry/instrumentation.py:591
↓ 10 callers
Function
int1store
Takes an unsigned byte (1 byte) and packs it as a bytes-object. Returns string.
mysql-connector-python/lib/mysql/connector/utils.py:101
↓ 10 callers
Method
make_auth
Make a MySQL Authentication packet. Args: handshake: Initial handshake. username: Account's username. pas
mysql-connector-python/lib/mysql/connector/protocol.py:284
↓ 10 callers
Method
make_stmt_execute
Make a MySQL packet with the Statement Execute command
mysql-connector-python/lib/mysql/connector/protocol.py:1021
↓ 10 callers
Method
set_config
Set the connection configuration for `MySQLConnectionAbstract` subclass instances. This method sets the configuration used for creating `MySQ
mysql-connector-python/lib/mysql/connector/pooling.py:508
↓ 10 callers
Method
start_transaction
Starts a transaction. This method explicitly starts a transaction sending the START TRANSACTION statement to the MySQL server. You ca
mysql-connector-python/lib/mysql/connector/abstracts.py:1821
↓ 10 callers
Method
uninstrument
Uninstrument the library.
mysql-connector-python/lib/mysql/connector/opentelemetry/instrumentation.py:650
↓ 9 callers
Method
_check_executed
Check if the statement has been executed. Raises an error if the statement has not been executed.
mysql-connector-python/lib/mysql/connector/cursor_cext.py:213
↓ 9 callers
Method
_exit_with_unsupported_operation
(self)
mysqlx-connector-python/tests/mysqld.py:912
↓ 9 callers
Method
_exit_with_unsupported_operation
(self)
mysql-connector-python/tests/mysqld.py:912
↓ 9 callers
Method
_handle_ok
Handle a MySQL OK packet. This method handles a MySQL OK packet. When the packet is found to be an Error packet, an error will be rai
mysql-connector-python/lib/mysql/connector/aio/connection.py:359
↓ 9 callers
Method
_make_mock_detector
Helper: construct MyAnomalyDetector with MyBaseMLModel.__init__ patched as a no-op (for pure unit test).
mysql-connector-python/tests/ai/ml/test_outlier.py:63
← previous
next →
101–200 of 5,006, ranked by callers