Struct mimir::TypeInfo
[−]
[src]
pub struct TypeInfo { /* fields omitted */ }
Wrapper for ODPIDataTypeInfo
struct.
Methods
impl TypeInfo
[src]
pub fn new(inner: ODPIDataTypeInfo) -> Self
[src]
Create a new TypeInfo
struct.
pub fn oracle_type_num(&self) -> ODPIOracleTypeNum
[src]
Get the oracle_type_num
value.
Specifies the type of the column that is being queried. It will be one of the values from
the enumeration ODPIOracleTypeNum
.
pub fn default_native_type_num(&self) -> ODPINativeTypeNum
[src]
Get the default_native_type_num
value.
Specifies the default native type for the column that is being queried. It will be one of
the values from the enumeration ODPINativeTypeNum
.
pub fn db_size_in_bytes(&self) -> u32
[src]
Get the db_size_in_bytes
value.
Specifies the size in bytes (from the database's perspective) of the column that is being queried. This value is only populated for strings and binary columns. For all other columns the value is zero.
pub fn client_size_in_bytes(&self) -> u32
[src]
Get the client_size_in_bytes
value.
Specifies the size in bytes (from the client's perspective) of the column that is being queried. This value is only populated for strings and binary columns. For all other columns the value is zero.
pub fn size_in_chars(&self) -> u32
[src]
Get the size_in_chars
value.
Specifies the size in characters of the column that is being queried. This value is only populated for string columns. For all other columns the value is zero.
pub fn precision(&self) -> i16
[src]
Get the precision
value.
Specifies the precision of the column that is being queried. This value is only populated for numeric and timestamp columns. For all other columns the value is zero.
pub fn scale(&self) -> i8
[src]
Get the scale
value.
Specifies the scale of the column that is being queried. This value is only populated for numeric columns. For all other columns the value is zero.
pub fn object_type(&self) -> Option<ObjectType>
[src]
Get the object_type
value.
Specifies a reference to the type of the object that is being queried. This value is only populated for named type columns. For all other columns the value is None.
Trait Implementations
impl Clone for TypeInfo
[src]
fn clone(&self) -> TypeInfo
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for TypeInfo
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more