Struct hdbconnect::ResultSetMetadata
source · pub struct ResultSetMetadata { /* private fields */ }
Expand description
Metadata for the fields in a result set.
Implementations§
source§impl ResultSetMetadata
impl ResultSetMetadata
sourcepub fn number_of_fields(&self) -> usize
pub fn number_of_fields(&self) -> usize
Returns the number of fields.
sourcepub fn schemaname(&self, i: usize) -> HdbResult<&String>
pub fn schemaname(&self, i: usize) -> HdbResult<&String>
Database schema of the i’th column in the resultset.
sourcepub fn tablename(&self, i: usize) -> HdbResult<&String>
pub fn tablename(&self, i: usize) -> HdbResult<&String>
Database table of the i’th column in the resultset.
sourcepub fn columnname(&self, i: usize) -> HdbResult<&String>
pub fn columnname(&self, i: usize) -> HdbResult<&String>
Name of the i’th column in the resultset.
sourcepub fn displayname(&self, index: usize) -> HdbResult<&String>
pub fn displayname(&self, index: usize) -> HdbResult<&String>
Display name of the column.
sourcepub fn is_nullable(&self, i: usize) -> HdbResult<bool>
pub fn is_nullable(&self, i: usize) -> HdbResult<bool>
True if column can contain NULL values.
sourcepub fn has_default(&self, i: usize) -> HdbResult<bool>
pub fn has_default(&self, i: usize) -> HdbResult<bool>
Returns true if the column has a default value.
sourcepub fn is_readonly(&self, i: usize) -> HdbResult<bool>
pub fn is_readonly(&self, i: usize) -> HdbResult<bool>
Returns true if the column is readonly.
sourcepub fn is_auto_incremented(&self, i: usize) -> HdbResult<bool>
pub fn is_auto_incremented(&self, i: usize) -> HdbResult<bool>
Returns true if the column is auto-incremented.
sourcepub fn is_array_type(&self, i: usize) -> HdbResult<bool>
pub fn is_array_type(&self, i: usize) -> HdbResult<bool>
Returns true if the column is of array type.
Trait Implementations§
source§impl Clone for ResultSetMetadata
impl Clone for ResultSetMetadata
source§fn clone(&self) -> ResultSetMetadata
fn clone(&self) -> ResultSetMetadata
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more