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
↓ 1 callers
Method
bootstrap
Bootstrap a MySQL installation Bootstrap a MySQL installation using the mysqld executable and the --bootstrap option. Arguments are d
mysqlx-connector-python/tests/mysqld.py:487
↓ 1 callers
Method
bootstrap
Bootstrap a MySQL installation Bootstrap a MySQL installation using the mysqld executable and the --bootstrap option. Arguments are d
mysql-connector-python/tests/mysqld.py:487
↓ 1 callers
Function
build_array
(array: Sequence[BuildExprTypes])
mysqlx-connector-python/lib/mysqlx/expr.py:359
↓ 1 callers
Method
build_insert
Build insert statement. Args: stmt (Statement): A :class:`mysqlx.AddStatement` or :class:`mysqlx.In
mysqlx-connector-python/lib/mysqlx/protocol.py:1038
↓ 1 callers
Function
build_object
(obj: Union[Dict, DbDoc])
mysqlx-connector-python/lib/mysqlx/expr.py:346
↓ 1 callers
Method
build_ssl_context
Build a SSLContext. Args: ssl_ca: Certificate authority, opptional. ssl_cert: SSL certificate, optional.
mysql-connector-python/lib/mysql/connector/network.py:528
↓ 1 callers
Method
build_ssl_context
Build a SSLContext.
mysql-connector-python/lib/mysql/connector/aio/network.py:645
↓ 1 callers
Function
build_traceparent_header
Build a traceparent header according to the provided span. The context information from the provided span is used to build the traceparent he
mysql-connector-python/lib/mysql/connector/opentelemetry/context_propagation.py:48
↓ 1 callers
Function
build_unsigned_int_scalar
(value: int)
mysqlx-connector-python/lib/mysqlx/expr.py:385
↓ 1 callers
Method
byte_size
Returns the size of the message in bytes. Args: msg (mysqlx.protobuf.Message): MySQL X Protobuf Message. Returns:
mysqlx-connector-python/lib/mysqlx/protobuf/__init__.py:551
↓ 1 callers
Method
can_failover
Returns the next connection parameters. Returns: bool: True if there is more server to failover to else False.
mysqlx-connector-python/lib/mysqlx/connection.py:659
↓ 1 callers
Method
cast
cast ::= CAST LPAREN expr AS cast_data_type RPAREN
mysqlx-connector-python/lib/mysqlx/expr.py:982
↓ 1 callers
Method
cast_data_type
cast_data_type ::= ( BINARY dimension? ) | ( CHAR dimension? ) | ( DATE ) | ( DATETIME dimension? ) | ( TIME dimension
mysqlx-connector-python/lib/mysqlx/expr.py:996
↓ 1 callers
Function
check_c_extension
Check whether we can load the C Extension This function needs the location of the mysql_config tool to figure out the location of the MySQL C
mysql-connector-python/tests/__init__.py:1095
↓ 1 callers
Function
check_if_pooled_connection_is_supported
Returns True if feature is supported for the Python version being used.
mysql-connector-python/tests/test_aio_pooling.py:58
↓ 1 callers
Method
check_running
(self, pid=None)
mysqlx-connector-python/tests/mysqld.py:919
↓ 1 callers
Method
check_running
(self, pid=None)
mysql-connector-python/tests/mysqld.py:919
↓ 1 callers
Method
clean_expression
Removes the keywords that does not form part of the expression. Removes the keywords "SELECT" and "WHERE" that does not form part of
mysqlx-connector-python/lib/mysqlx/expr.py:453
↓ 1 callers
Method
cleanup_tables
(self, cnx)
mysql-connector-python/tests/__init__.py:879
↓ 1 callers
Method
close
Closes the session.
mysqlx-connector-python/lib/mysqlx/connection.py:2460
↓ 1 callers
Method
close
Disconnects from the MySQL server. This method tries to send a `QUIT` command and close the socket. It raises no exceptions.
mysql-connector-python/lib/mysql/connector/abstracts.py:1566
↓ 1 callers
Method
close
Close the cursor. Use close() when you are done using a cursor. This method closes the cursor, resets all results, and ensures that t
mysql-connector-python/lib/mysql/connector/abstracts.py:2627
↓ 1 callers
Method
close
Do not close, but adds connection back to pool. For a pooled connection, close() does not actually close it but returns it to the pool
mysql-connector-python/lib/mysql/connector/aio/pooling.py:367
↓ 1 callers
Method
close
Close the connection. It closes any opened cursor associated to this connection, and closes the underling socket connection.
mysql-connector-python/lib/mysql/connector/aio/abstracts.py:1588
↓ 1 callers
Method
close
Close the cursor.
mysql-connector-python/lib/mysql/connector/aio/abstracts.py:2628
↓ 1 callers
Method
close_connections
Closes all underliying connections as pooled connections
mysqlx-connector-python/lib/mysqlx/connection.py:2466
↓ 1 callers
Method
close_pool
Closes the connections in the pools Returns: int: The number of closed pools
mysqlx-connector-python/lib/mysqlx/connection.py:2074
↓ 1 callers
Method
close_result
Close the result. Args: result (Result): A `Result` based type object. Raises: :class:`mysqlx.OperationalErr
mysqlx-connector-python/lib/mysqlx/protocol.py:1090
↓ 1 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 wi
mysql-connector-python/lib/mysql/connector/aio/connection.py:1501
↓ 1 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 t
mysql-connector-python/lib/mysql/connector/aio/connection.py:1141
↓ 1 callers
Method
cmd_quit
Close the current connection with the server. Send the QUIT command to the MySQL server, closing the current connection.
mysql-connector-python/lib/mysql/connector/aio/connection.py:1437
↓ 1 callers
Method
cmd_reset_connection
Resets the session state without re-authenticating Reset command only works on MySQL server 5.7.3 or later. The result is True for a
mysql-connector-python/lib/mysql/connector/connection_cext.py:1016
↓ 1 callers
Method
cmd_reset_connection
Resets the session state without re-authenticating. Reset command only works on MySQL server 5.7.3 or later. The result is True for a
mysql-connector-python/lib/mysql/connector/aio/connection.py:998
↓ 1 callers
Method
cmd_stmt_execute
Execute a prepared MySQL statement.
mysql-connector-python/lib/mysql/connector/aio/connection.py:1270
↓ 1 callers
Method
cmd_stmt_prepare
Prepare a MySQL statement. This method will send the PREPARE command to MySQL together with the given statement.
mysql-connector-python/lib/mysql/connector/aio/connection.py:1223
↓ 1 callers
Method
cmd_stmt_reset
Reset data for prepared statement sent as long data. The result is a dictionary with OK packet information.
mysql-connector-python/lib/mysql/connector/aio/connection.py:1335
↓ 1 callers
Method
cmd_stmt_send_long_data
Send data for a column This methods send data for a column (for example BLOB) for statement identified by statement_id. The param_id
mysql-connector-python/lib/mysql/connector/connection.py:1699
↓ 1 callers
Method
cmd_stmt_send_long_data
Send data for a column. This methods send data for a column (for example BLOB) for statement identified by statement_id. The param_id
mysql-connector-python/lib/mysql/connector/aio/connection.py:1395
↓ 1 callers
Function
cmp_result
Compare results (list of tuples) coming from MySQL For certain results, like SHOW VARIABLES or SHOW WARNINGS, the order is unpredictable. To
mysql-connector-python/tests/__init__.py:441
↓ 1 callers
Method
config
Configures the MySQL Connection. This method allows you to configure the `MySQLConnection` instance after it has been instantiated.
mysql-connector-python/lib/mysql/connector/abstracts.py:559
↓ 1 callers
Method
connect
Connects to the MySQL server. This method sets up the connection to the MySQL server. If no arguments are given, it will use the alre
mysql-connector-python/lib/mysql/connector/abstracts.py:1581
↓ 1 callers
Method
consume_any_token
(self)
mysqlx-connector-python/lib/mysqlx/expr.py:911
↓ 1 callers
Method
consume_results
Consume the current result This method consume the result by reading (consuming) all rows.
mysql-connector-python/lib/mysql/connector/connection_cext.py:964
↓ 1 callers
Method
consume_results
Consume pending results.
mysql-connector-python/lib/mysql/connector/aio/abstracts.py:1518
↓ 1 callers
Function
copy_metadata_files
Copy metadata files (required by MANIFEST.in) from the parent directory to the current directory.
mysqlx-connector-python/setup.py:173
↓ 1 callers
Function
copy_metadata_files
Copy metadata files (required by MANIFEST.in) from the parent directory to the current directory.
mysql-connector-python/setup.py:167
↓ 1 callers
Function
create_json_with_id
Create big JSON doc with _id.
mysqlx-connector-python/tests/qa/test_qa_mysqlx_crud_collection_add.py:62
↓ 1 callers
Method
create_pool
Creates a `ConnectionPool` instance to hold the connections. Creates a `ConnectionPool` instance to hold the connections only if no o
mysqlx-connector-python/lib/mysqlx/connection.py:1831
↓ 1 callers
Function
create_tree
Create empty directories under 'base_dir' needed to put 'files' there. Args: base_dir (str): Name of the base directory. files (l
mysqlx-connector-python/cpydist/utils.py:679
↓ 1 callers
Function
create_tree
Create empty directories under 'base_dir' needed to put 'files' there. Args: base_dir (str): Name of the base directory. files (l
mysql-connector-python/cpydist/utils.py:679
↓ 1 callers
Method
cursor
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/abstracts.py:1604
↓ 1 callers
Function
django_tests
Run Django unit tests
mysql-connector-python/support/django/run_django_tests.py:275
↓ 1 callers
Method
docpath_array_loc
(self)
mysqlx-connector-python/lib/mysqlx/expr.py:764
↓ 1 callers
Method
docpath_member
(self)
mysqlx-connector-python/lib/mysqlx/expr.py:738
↓ 1 callers
Function
download
Download a file given a URL This function downloads a file using the given url. When local_file is not given, a file name will be used as giv
mysql-connector-python/support/django/run_django_tests.py:188
↓ 1 callers
Function
embed_query
(text: str)
mysql-connector-python/tests/ai/genai/test_vector_store.py:66
↓ 1 callers
Method
execute
Prepare and execute a MySQL Prepared Statement This method will prepare the given operation and execute it using the given parameters
mysql-connector-python/lib/mysql/connector/cursor_cext.py:1087
↓ 1 callers
Method
execute
Prepare and execute a MySQL Prepared Statement This method will prepare the given operation and execute it using the optionally given
mysql-connector-python/lib/mysql/connector/cursor.py:1176
↓ 1 callers
Method
execute
Prepare and execute a MySQL Prepared Statement This method will prepare the given operation and execute it using the optionally given
mysql-connector-python/lib/mysql/connector/aio/cursor.py:1142
↓ 1 callers
Method
execute
Executes the given operation (a MySQL script) substituting any markers with the given parameters. For example, getting all rows where
mysql-connector-python/lib/mysql/connector/aio/abstracts.py:2295
↓ 1 callers
Method
exists_in_database
Verifies if this object exists in the database. Returns: bool: `True` if object exists in database. Raises: N
mysqlx-connector-python/lib/mysqlx/crud.py:139
↓ 1 callers
Method
exists_in_database
Verifies if this object exists in the database. Returns: bool: `True` if object exists in database.
mysqlx-connector-python/lib/mysqlx/crud.py:474
↓ 1 callers
Method
exists_in_database
Verifies if this object exists in the database. Returns: bool: `True` if object exists in database.
mysqlx-connector-python/lib/mysqlx/crud.py:671
↓ 1 callers
Method
expect_token
(self, token_type: int)
mysqlx-connector-python/lib/mysqlx/expr.py:903
↓ 1 callers
Method
explain_predictions
Explain model predictions using provided data. References: https://dev.mysql.com/doc/heatwave/en/mys-hwaml-ml-explain-ta
mysql-connector-python/lib/mysql/ai/ml/classifier.py:167
↓ 1 callers
Method
explain_predictions
Explain model predictions using provided data. References: https://dev.mysql.com/doc/heatwave/en/mys-hwaml-ml-explain-ta
mysql-connector-python/lib/mysql/ai/ml/regressor.py:127
↓ 1 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:1237
↓ 1 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.py:1350
↓ 1 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:1328
↓ 1 callers
Method
fetchmany
Return the next set of rows of a query result set. When no more rows are available, it returns an empty list. The number of rows retu
mysql-connector-python/lib/mysql/connector/cursor_cext.py:684
↓ 1 callers
Method
fetchmany
Return the next set of rows of a query result set. When no more rows are available, it returns an empty list. The number of rows retu
mysql-connector-python/lib/mysql/connector/aio/cursor.py:751
↓ 1 callers
Method
fetchone
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.py:943
↓ 1 callers
Method
finalize_options
Finalize the options.
mysqlx-connector-python/cpydist/sdist.py:191
↓ 1 callers
Method
finalize_options
Finalize the options.
mysql-connector-python/cpydist/sdist.py:191
↓ 1 callers
Function
from_protobuf
(column: Column, payload: bytes)
mysqlx-connector-python/lib/mysqlx/result.py:47
↓ 1 callers
Method
function_call
(self)
mysqlx-connector-python/lib/mysqlx/expr.py:729
↓ 1 callers
Function
generate_pool_name
Generate a pool name. This function takes keyword arguments, usually the connection arguments and tries to generate a name for the pool.
mysqlx-connector-python/lib/mysqlx/connection.py:229
↓ 1 callers
Function
get_args
Parse and return command line arguments
mysql-connector-python/support/django/run_django_tests.py:125
↓ 1 callers
Method
get_binding_map
Returns the binding map dictionary. Returns: dict: The binding map dictionary.
mysqlx-connector-python/lib/mysqlx/statement.py:622
↓ 1 callers
Method
get_capabilites
Get capabilities. Returns: mysqlx.protobuf.Message: MySQL X Protobuf Message.
mysqlx-connector-python/lib/mysqlx/protocol.py:581
↓ 1 callers
Function
get_category_by_tls_version
( ossa_cipher_data: Dict[str, Any], category: str, tls_version: str )
automation/generate_tls_ciphers_file.py:99
↓ 1 callers
Function
get_client_error
Lookup client error This function will lookup the client error message based on the given error and return the error message. If the error wa
mysqlx-connector-python/lib/mysqlx/locales/__init__.py:38
↓ 1 callers
Function
get_client_error
Lookup client error This function will lookup the client error message based on the given error and return the error message. If the error wa
mysql-connector-python/lib/mysql/connector/locales/__init__.py:38
↓ 1 callers
Method
get_collection
(self, collection_name: str)
mysql-connector-python/tests/otel/collector.py:166
↓ 1 callers
Method
get_collection_as_table
Returns a a table object for the given collection Returns: mysqlx.Table: Table object.
mysqlx-connector-python/lib/mysqlx/crud.py:219
↓ 1 callers
Method
get_column_metadata
Returns column metadata. Args: result (Result): A `Result` based type object. Raises: :class:`mysqlx.Interfa
mysqlx-connector-python/lib/mysqlx/protocol.py:1117
↓ 1 callers
Method
get_connection
Returns the underlying connection. Returns: mysqlx.connection.Connection: The connection object.
mysqlx-connector-python/lib/mysqlx/crud.py:107
↓ 1 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/aio/pooling.py:617
↓ 1 callers
Method
get_connection_params
Verifies if the Router is available to open connections. Returns: tuple: host and port or socket information tuple.
mysqlx-connector-python/lib/mysqlx/connection.py:568
↓ 1 callers
Method
get_constraints
Retrieve any constraints or keys (unique, pk, fk, check, index) across one or more columns.
mysql-connector-python/lib/mysql/connector/django/introspection.py:352
↓ 1 callers
Method
get_description
Return test description, if needed truncated to 60 characters
mysql-connector-python/unittests.py:515
↓ 1 callers
Method
get_disconnected_reason
Get the disconnection message sent by the server. Returns: string: disconnection reason from the server.
mysqlx-connector-python/lib/mysqlx/connection.py:1372
↓ 1 callers
Function
get_dist_name
Get the distribution name. Get the distribution name usually used for creating the egg file. The Python version is excluded from the name whe
mysqlx-connector-python/cpydist/utils.py:438
↓ 1 callers
Function
get_dist_name
Get the distribution name. Get the distribution name usually used for creating the egg file. The Python version is excluded from the name whe
mysql-connector-python/cpydist/utils.py:438
↓ 1 callers
Function
get_django_version
(path)
mysql-connector-python/support/django/run_django_tests.py:334
↓ 1 callers
Method
get_full_info
Returns a sequence of all available SQL Modes This class method returns a tuple containing all SQL Mode names. The names will be alph
mysql-connector-python/lib/mysql/connector/constants.py:1153
↓ 1 callers
Function
get_git_info
Get Git information about the last commit. Returns: dict: A dict containing the information about the last commit.
mysqlx-connector-python/cpydist/utils.py:272
↓ 1 callers
Function
get_git_info
Get Git information about the last commit. Returns: dict: A dict containing the information about the last commit.
mysql-connector-python/cpydist/utils.py:272
↓ 1 callers
Method
get_grouping
Returns the grouping expression list. Returns: `list`: The grouping expression list.
mysqlx-connector-python/lib/mysqlx/statement.py:424
↓ 1 callers
Method
get_having
Returns the having expression. Returns: object: The having expression.
mysqlx-connector-python/lib/mysqlx/statement.py:432
← previous
next →
1,201–1,300 of 5,006, ranked by callers