pub struct ResultSetMetadata {
pub row_type: Option<StructType>,
pub transaction: Option<Transaction>,
pub undeclared_parameters: Option<StructType>,
}Expand description
Metadata about a ResultSet or PartialResultSet.
This type is not used in any activity, and only used as part of another schema.
Fields§
§row_type: Option<StructType>Indicates the field names and types for the rows in the result set. For example, a SQL query like "SELECT UserId, UserName FROM Users" could return a row_type value like: “fields”: [ { “name”: “UserId”, “type”: { “code”: “INT64” } }, { “name”: “UserName”, “type”: { “code”: “STRING” } }, ]
transaction: Option<Transaction>If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.
undeclared_parameters: Option<StructType>A SQL query can be parameterized. In PLAN mode, these parameters can be undeclared. This indicates the field names and types for those undeclared parameters in the SQL query. For example, a SQL query like "SELECT * FROM Users where UserId = @userId and UserName = @userName " could return a undeclared_parameters value like: “fields”: [ { “name”: “UserId”, “type”: { “code”: “INT64” } }, { “name”: “UserName”, “type”: { “code”: “STRING” } }, ]
Trait Implementations§
Source§impl Clone for ResultSetMetadata
impl Clone for ResultSetMetadata
Source§fn clone(&self) -> ResultSetMetadata
fn clone(&self) -> ResultSetMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more