Struct mimir::Data [−][src]
pub struct Data { /* fields omitted */ }
This structure is used for passing data to and from the database for variables and for manipulating object attributes and collection values.
Methods
impl Data
[src]
impl Data
pub fn null(&self) -> bool
[src]
pub fn null(&self) -> bool
Is the data null?
pub fn get_bytes(&self) -> Vec<u8>
[src]
pub fn get_bytes(&self) -> Vec<u8>
Get the value as a Vector of byes when the native type is DPI_NATIVE_TYPE_BYTES.
pub fn get_boolean(&self) -> bool
[src]
pub fn get_boolean(&self) -> bool
Get the value as a boolean when the native type is DPI_NATIVE_TYPE_BOOLEAN.
pub fn set_boolean(&self, val: bool)
[src]
pub fn set_boolean(&self, val: bool)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_BOOLEAN.
pub fn get_double(&self) -> f64
[src]
pub fn get_double(&self) -> f64
Get the value as a f64
when the native type is DPI_NATIVE_TYPE_DOUBLE.
pub fn set_double(&self, val: f64)
[src]
pub fn set_double(&self, val: f64)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_DOUBLE.
pub fn get_duration(&self) -> Duration
[src]
pub fn get_duration(&self) -> Duration
Get the value as a Duration
when the native type is DPI_NATIVE_TYPE_INTERVAL_DS.
pub fn set_duration(&self, val: Duration) -> Result<()>
[src]
pub fn set_duration(&self, val: Duration) -> Result<()>
Sets the value of the data when the native type is DPI_NATIVE_TYPE_INTERVAL_DS.
pub fn get_float(&self) -> f32
[src]
pub fn get_float(&self) -> f32
Get the value as a f32
when the native type is DPI_NATIVE_TYPE_FLOAT.
pub fn set_float(&self, val: f32)
[src]
pub fn set_float(&self, val: f32)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_FLOAT.
pub fn get_int64(&self) -> i64
[src]
pub fn get_int64(&self) -> i64
Get the value as an i64
when the native type is DPI_NATIVE_TYPE_INT64.
pub fn set_int64(&self, val: i64)
[src]
pub fn set_int64(&self, val: i64)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_INT64.
pub fn get_lob(&self) -> *mut ODPILob
[src]
pub fn get_lob(&self) -> *mut ODPILob
Returns the value of the data when the native type is DPI_NATIVE_TYPE_LOB.
pub fn set_lob(&self, val: *mut ODPILob)
[src]
pub fn set_lob(&self, val: *mut ODPILob)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_LOB.
pub fn get_object(&self) -> *mut ODPIObject
[src]
pub fn get_object(&self) -> *mut ODPIObject
Returns the value of the data when the native type is DPI_NATIVE_TYPE_OBJECT.
pub fn set_object(&self, val: *mut ODPIObject)
[src]
pub fn set_object(&self, val: *mut ODPIObject)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_OBJECT.
pub fn get_stmt(&self) -> *mut ODPIStmt
[src]
pub fn get_stmt(&self) -> *mut ODPIStmt
Returns the value of the data when the native type is DPI_NATIVE_TYPE_STMT.
pub fn set_stmt(&self, val: *mut ODPIStmt)
[src]
pub fn set_stmt(&self, val: *mut ODPIStmt)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_STMT.
pub fn get_string(&self) -> String
[src]
pub fn get_string(&self) -> String
Get the value as a String
when the native type is DPI_NATIVE_TYPE_BYTES.
pub fn set_string(&self, val: &str) -> Result<()>
[src]
pub fn set_string(&self, val: &str) -> Result<()>
Sets the value of the data when the native type is DPI_NATIVE_TYPE_BYTES.
pub fn get_uint64(&self) -> u64
[src]
pub fn get_uint64(&self) -> u64
Get the value as a u64
when the native type is DPI_NATIVE_TYPE_UINT64.
pub fn set_uint64(&self, val: u64)
[src]
pub fn set_uint64(&self, val: u64)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_UINT64.
pub fn get_utc(&self) -> DateTime<Utc>
[src]
pub fn get_utc(&self) -> DateTime<Utc>
Get the value as a Utc
when the native type is DPI_NATIVE_TYPE_TIMESTAMP.
pub fn set_utc(&self, val: DateTime<Utc>) -> Result<()>
[src]
pub fn set_utc(&self, val: DateTime<Utc>) -> Result<()>
Sets the value of the data when the native type is DPI_NATIVE_TYPE_TIMESTAMP.
pub fn get_years_months(&self) -> YearsMonths
[src]
pub fn get_years_months(&self) -> YearsMonths
Get the value as a YearsMonths
when the native type is DPI_NATIVE_TYPE_INTERVAL_YM.
pub fn set_years_months(&self, val: &YearsMonths)
[src]
pub fn set_years_months(&self, val: &YearsMonths)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_INTERVAL_YM.
pub fn to_string(&self, type_info: &TypeInfo) -> Result<String>
[src]
pub fn to_string(&self, type_info: &TypeInfo) -> Result<String>
Convert Data
to a String
given the Oracle Data Type.
pub fn len(&self, type_info: &TypeInfo) -> Result<usize>
[src]
pub fn len(&self, type_info: &TypeInfo) -> Result<usize>
Get the data length (after conversion to a String
)
Trait Implementations
impl Debug for Data
[src]
impl Debug for Data
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl TryFrom<*mut ODPIData> for Data
[src]
impl TryFrom<*mut ODPIData> for Data