graph LR
Asynchronous_Cursor_Core_["Asynchronous Cursor (Core)"]
Query_Execution_Layer["Query Execution Layer"]
Result_Retrieval_Layer["Result Retrieval Layer"]
Query_Preparation["Query Preparation"]
Core_Query_Logic["Core Query Logic"]
Raw_Result_Processing["Raw Result Processing"]
Row_Iteration["Row Iteration"]
Cursor_Lifecycle_Management["Cursor Lifecycle Management"]
Asynchronous_Cursor_Core_ -- "orchestrates" --> Query_Execution_Layer
Asynchronous_Cursor_Core_ -- "orchestrates" --> Result_Retrieval_Layer
Asynchronous_Cursor_Core_ -- "orchestrates" --> Query_Preparation
Asynchronous_Cursor_Core_ -- "orchestrates" --> Core_Query_Logic
Asynchronous_Cursor_Core_ -- "orchestrates" --> Raw_Result_Processing
Asynchronous_Cursor_Core_ -- "orchestrates" --> Row_Iteration
Asynchronous_Cursor_Core_ -- "manages" --> Cursor_Lifecycle_Management
Query_Execution_Layer -- "utilizes" --> Query_Preparation
Query_Execution_Layer -- "invokes" --> Core_Query_Logic
Core_Query_Logic -- "passes responses to" --> Raw_Result_Processing
Result_Retrieval_Layer -- "depends on" --> Raw_Result_Processing
Result_Retrieval_Layer -- "depends on" --> Row_Iteration
Raw_Result_Processing -- "provides data to" --> Row_Iteration
The Asynchronous Cursor subsystem in aiomysql provides a high-level asynchronous interface for executing SQL queries and retrieving results, abstracting underlying connection details and handling result set processing.
The central component providing the high-level asynchronous interface for database operations. It orchestrates the flow of query execution and result retrieval, acting as an adapter over the underlying connection.
Related Classes/Methods:
Handles the asynchronous initiation and management of SQL command execution against the database.
Related Classes/Methods:
Provides various asynchronous mechanisms to retrieve data rows from the executed query's result set.
Related Classes/Methods:
aiomysql.cursors.fetchone:626-633aiomysql.cursors.fetchmany:647-669aiomysql.cursors.fetchall:635-645
Safely prepares a SQL query string by escaping arguments, crucial for preventing SQL injection vulnerabilities.
Related Classes/Methods:
Orchestrates the low-level asynchronous sending of a query to the database and handles the initial receipt of the raw database response.
Related Classes/Methods:
Parses the raw database response (byte stream) into a structured, internal format suitable for further processing.
Related Classes/Methods:
Facilitates the asynchronous reading and processing of individual rows from the structured result set.
Related Classes/Methods:
Manages the state and resources of the cursor, ensuring proper cleanup and release of associated resources.
Related Classes/Methods: