Struct mimir::TypeInfo
[−]
[src]
pub struct TypeInfo { /* fields omitted */ }
Wrapper for ODPIDataTypeInfo
struct.
Methods
impl TypeInfo
[src]
fn new(inner: ODPIDataTypeInfo) -> TypeInfo
Create a new TypeInfo
struct.
fn oracle_type_num(&self) -> ODPIOracleTypeNum
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
.
fn default_native_type_num(&self) -> ODPINativeTypeNum
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
.
fn db_size_in_bytes(&self) -> u32
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.
fn client_size_in_bytes(&self) -> u32
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.
fn size_in_chars(&self) -> u32
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.
fn precision(&self) -> i16
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.
fn scale(&self) -> i8
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.
fn object_type(&self) -> Option<ObjectType>
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.