feat: execute_query_multi — stacked result sets, DML notices, first-error stop (Task 8)
This commit is contained in:
@@ -72,6 +72,22 @@ pub struct QueryResult {
|
||||
pub execution_time_ms: Option<i64>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct StatementNotice {
|
||||
pub statement_index: usize,
|
||||
/// "dml" | "ddl" | "error"
|
||||
pub kind: String,
|
||||
pub text: String,
|
||||
pub affected: Option<i64>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct MultiQueryResult {
|
||||
pub result_sets: Vec<QueryResult>,
|
||||
pub notices: Vec<StatementNotice>,
|
||||
pub execution_time_ms: i64,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct Pagination {
|
||||
pub page: i64,
|
||||
|
||||
Reference in New Issue
Block a user