pub struct ResultSet {
pub result_set_meta_data: ResultSetMetaData,
pub data: Vec<Vec<Option<String>>>,
pub code: String,
pub statement_handle: StatementHandle,
pub statement_status_url: Option<String>,
pub statement_handles: Option<Vec<StatementHandle>>,
pub sql_state: Option<String>,
pub message: Option<String>,
pub request_id: Option<RequestId>,
pub created_on: Option<i64>,
pub stats: Option<Value>,
}Expand description
A 200 OK completed result. Partition 0 arrives inline in data; later
partitions are fetched separately (see PartitionInfo).
Fields§
§result_set_meta_data: ResultSetMetaDataColumn types, row count, and partition layout.
data: Vec<Vec<Option<String>>>Inline partition-0 rows: a row is a vector of nullable jsonv2 strings.
code: StringSnowflake response code (e.g. a success code like 090001).
statement_handle: StatementHandleThe statement handle (also the query id for re-fetch / cancel).
statement_status_url: Option<String>Relative URL to re-GET for status/partitions.
statement_handles: Option<Vec<StatementHandle>>Per-sub-statement handles when MULTI_STATEMENT_COUNT fans out.
sql_state: Option<String>SQLSTATE, when present.
message: Option<String>Human-readable message, when present.
request_id: Option<RequestId>Echoed idempotency request id.
created_on: Option<i64>Server creation time (epoch millis), when present.
stats: Option<Value>Opaque execution statistics, preserved verbatim.
Implementations§
Source§impl ResultSet
impl ResultSet
Sourcepub const fn total_rows(&self) -> i64
pub const fn total_rows(&self) -> i64
Total rows across all partitions (not just the inline data).
Sourcepub fn partition_count(&self) -> usize
pub fn partition_count(&self) -> usize
Number of result partitions (≥ 1; partition 0 is inline).
Sourcepub fn is_multi_statement(&self) -> bool
pub fn is_multi_statement(&self) -> bool
True when the response fanned out into multiple sub-statements.