Create a query result for a session statement
(session_result: SessionResult)
| 76 | |
| 77 | /// Create a query result for a session statement |
| 78 | pub fn for_session(session_result: SessionResult) -> Self { |
| 79 | Self { |
| 80 | rows: Vec::new(), |
| 81 | variables: Vec::new(), |
| 82 | execution_time_ms: 0, |
| 83 | rows_affected: 0, |
| 84 | session_result: Some(session_result), |
| 85 | warnings: Vec::new(), |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | /// Add a warning to the query result |
| 90 | pub fn add_warning(&mut self, warning: String) { |
nothing calls this directly
no outgoing calls
no test coverage detected