Struct gcp_bigquery_client::model::query_response::ResultSet
source · [−]pub struct ResultSet { /* private fields */ }
Expand description
Set of rows in response to a SQL query
Implementations
sourceimpl ResultSet
impl ResultSet
pub fn new(query_response: QueryResponse) -> Self
pub fn query_response(&self) -> &QueryResponse
sourcepub fn next_row(&mut self) -> bool
pub fn next_row(&mut self) -> bool
Moves the cursor froward one row from its current position. A ResultSet cursor is initially positioned before the first row; the first call to the method next makes the first row the current row; the second call makes the second row the current row, and so on.
sourcepub fn column_names(&self) -> Vec<String>
pub fn column_names(&self) -> Vec<String>
List of column names for this result set.
sourcepub fn column_index(&self, column_name: &str) -> Option<&usize>
pub fn column_index(&self, column_name: &str) -> Option<&usize>
Returns the index for a column name.
pub fn get_i64(&self, col_index: usize) -> Result<Option<i64>, BQError>
pub fn get_i64_by_name(&self, col_name: &str) -> Result<Option<i64>, BQError>
pub fn get_f64(&self, col_index: usize) -> Result<Option<f64>, BQError>
pub fn get_f64_by_name(&self, col_name: &str) -> Result<Option<f64>, BQError>
pub fn get_bool(&self, col_index: usize) -> Result<Option<bool>, BQError>
pub fn get_bool_by_name(&self, col_name: &str) -> Result<Option<bool>, BQError>
pub fn get_string(&self, col_index: usize) -> Result<Option<String>, BQError>
pub fn get_string_by_name(
&self,
col_name: &str
) -> Result<Option<String>, BQError>
pub fn get_json_value(&self, col_index: usize) -> Result<Option<Value>, BQError>
pub fn get_json_value_by_name(
&self,
col_name: &str
) -> Result<Option<Value>, BQError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ResultSet
impl Send for ResultSet
impl Sync for ResultSet
impl Unpin for ResultSet
impl UnwindSafe for ResultSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more