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]
fn get_boolean(&self) -> bool
Get the value as a boolean when the native type is DPI_NATIVE_TYPE_BOOLEAN.
fn set_boolean(&self, val: bool)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_BOOLEAN.
fn get_double(&self) -> f64
Get the value as a f64
when the native type is DPI_NATIVE_TYPE_DOUBLE.
fn set_double(&self, val: f64)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_DOUBLE.
fn get_duration(&self) -> Duration
Get the value as a Duration
when the native type is DPI_NATIVE_TYPE_INTERVAL_DS.
fn set_duration(&self, val: Duration)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_INTERVAL_DS.
fn get_float(&self) -> f32
Get the value as a f32
when the native type is DPI_NATIVE_TYPE_FLOAT.
fn set_float(&self, val: f32)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_FLOAT.
fn get_int64(&self) -> i64
Get the value as an i64
when the native type is DPI_NATIVE_TYPE_INT64.
fn set_int64(&self, val: i64)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_INT64.
fn get_lob(&self) -> *mut ODPILob
Returns the value of the data when the native type is DPI_NATIVE_TYPE_LOB.
fn set_lob(&self, val: *mut ODPILob)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_LOB.
fn get_object(&self) -> *mut ODPIObject
Returns the value of the data when the native type is DPI_NATIVE_TYPE_OBJECT.
fn set_object(&self, val: *mut ODPIObject)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_OBJECT.
fn get_stmt(&self) -> *mut ODPIStmt
Returns the value of the data when the native type is DPI_NATIVE_TYPE_STMT.
fn set_stmt(&self, val: *mut ODPIStmt)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_STMT.
fn get_string(&self) -> String
Get the value as a String
when the native type is DPI_NATIVE_TYPE_BYTES.
fn set_string(&self, val: &str)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_BYTES.
fn get_uint64(&self) -> u64
Get the value as a u64
when the native type is DPI_NATIVE_TYPE_UINT64.
fn set_uint64(&self, val: u64)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_UINT64.
fn get_utc(&self) -> DateTime<Utc>
Get the value as a Utc
when the native type is DPI_NATIVE_TYPE_TIMESTAMP.
fn set_utc(&self, val: DateTime<Utc>)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_TIMESTAMP.
fn get_years_months(&self) -> YearsMonths
Get the value as a YearsMonths
when the native type is DPI_NATIVE_TYPE_INTERVAL_YM.
fn set_years_months(&self, val: YearsMonths)
Sets the value of the data when the native type is DPI_NATIVE_TYPE_INTERVAL_YM.