Search Results
https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursor-clear-attributes.html
Syntax: cursor.clear_attributes() Clear the list of query attributes on the connector's side, as set by Section 10.5.2, “MySQLCursor.add_attribute() Method”.
https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursor-fetchmany.html
Syntax: rows = cursor.fetchmany(size=1) This method fetches the next set of rows of a query result and returns a list of tuples. If no more rows are available, it returns an empty list. The number of rows returned can be specified using the size ...
https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursor-get-attributes.html
Syntax: cursor.get_attributes() Return a list of existing query attributes, as set by Section 10.5.2, “MySQLCursor.add_attribute() Method”.
https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursor-lastrowid.html
Syntax: id = cursor.lastrowid This read-only property returns the value generated for an AUTO_INCREMENT column by the previous INSERT or UPDATE statement or None when there is no such value available. For example, if you perform an INSERT into a ...
https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursor-statement.html
Syntax: str = cursor.statement This read-only property returns the last executed statement as a string. The statement property can be useful for debugging and displaying what was sent to the MySQL server. The string can contain multiple statements ...
https://dev.mysql.com/doc/connector-python/en/connector-python-opentelemetry.html
OracleMySQLInstrumentor().instrument() with tracer.start_as_current_span("client_app"): with mysql.connector.connect(**config) as cnx: with cnx.cursor() as cur: cur.execute("SELECT @@version") _ = cur.fetchall() Morphology of the Emitted Traces A ...
https://dev.mysql.com/doc/connector-python/en/connector-python-reference.html
mysql.connector errorcode errors connection constants conversion cursor dbapi locales eng client_error protocol utils . Examples should be considered working for Python 2.7, and Python 3.1 and greater. They might also work for older versions (such ...
https://dev.mysql.com/doc/internals/en/com-stmt-reset.html
COM_STMT_RESET resets the data of a prepared statement which was accumulated with COM_STMT_SEND_LONG_DATA commands and closes the cursor if it was opened with COM_STMT_EXECUTE The server will send a OK_Packet if the statement could be reset, a ...
https://dev.mysql.com/doc/internals/en/creating-handlerton.html
Called when a cursor is created to allow the storage engine to create a consistent read view. Possible values are defined in sql/handler.h and copied here: #define HTON_NO_FLAGS 0 #define HTON_CLOSE_CURSORS_AT_COMMIT (1 << 0) #define ... The ...
https://dev.mysql.com/doc/internals/en/implementing-index-next-method.html
The [custom-engine.html#custom-engine-api-reference-index_next index_next()] method is used for index scanning: int ha_foo::index_next(byte * buf) The *buf parameter is populated with the row that corresponds to the next matching key value ...