[−][src]Enum hdbconnect::HdbValue
Enum for all supported database value types.
Variants
Is swapped in where a real value (any of the others) is swapped out.
Representation of a database NULL value.
TINYINT(u8)
Stores an 8-bit unsigned integer. The minimum value is 0. The maximum value is 255.
SMALLINT(i16)
Stores a 16-bit signed integer. The minimum value is -32,768. The maximum value is 32,767.
INT(i32)
Stores a 32-bit signed integer. The minimum value is -2,147,483,648. The maximum value is 2,147,483,647.
BIGINT(i64)
Stores a 64-bit signed integer. The minimum value is -9,223,372,036,854,775,808. The maximum value is 9,223,372,036,854,775,807.
DECIMAL(BigDecimal)
Representation for fixed-point decimal values.
REAL(f32)
Stores a single-precision 32-bit floating-point number.
DOUBLE(f64)
Stores a double-precision 64-bit floating-point number. The minimum value is -1.7976931348623157E308, the maximum value is 1.7976931348623157E308 . The smallest positive DOUBLE value is 2.2250738585072014E-308 and the largest negative DOUBLE value is -2.2250738585072014E-308.
Stores binary data.
CLOB(CLob)
Stores a large ASCII character string.
NCLOB(NCLob)
Stores a large Unicode string.
BLOB(BLob)
Stores a large binary string.
Used for streaming LOBs to the database (see
PreparedStatement::execute_row()
).
BOOLEAN(bool)
BOOLEAN stores boolean values, which are TRUE or FALSE.
STRING(String)
The DB returns all Strings as type STRING, independent of the concrete column type.
STR(&'a str)
Can be used for avoiding cloning when sending large Strings to the database (see
PreparedStatement::execute_row()
).
LONGDATE(LongDate)
Timestamp with 10^-7 seconds precision, uses eight bytes.
SECONDDATE(SecondDate)
TIMESTAMP with second precision.
DAYDATE(DayDate)
DATE with day precision.
SECONDTIME(SecondTime)
TIME with second precision.
Spatial type GEOMETRY.
Spatial type POINT.
Methods
impl<'a> HdbValue<'a>
[src]
impl HdbValue<'static>
[src]
pub fn try_into<'x, T: Deserialize<'x>>(self) -> HdbResult<T>
[src]
Deserialize into a rust type.
Errors
HdbError::DeserializationError
if the target type does not fit.
pub fn try_into_blob(self) -> HdbResult<BLob>
[src]
pub fn try_into_clob(self) -> HdbResult<CLob>
[src]
pub fn try_into_nclob(self) -> HdbResult<NCLob>
[src]
Trait Implementations
impl DbValue for HdbValue<'static>
[src]
fn is_null(&self) -> bool
[src]
fn into_typed<'de, T>(self) -> Result<T, DeserializationError> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl DbValueInto<NaiveDateTime> for HdbValue<'static>
[src]
fn try_into(self) -> Result<NaiveDateTime, ConversionError>
[src]
impl DbValueInto<String> for HdbValue<'static>
[src]
fn try_into(self) -> Result<String, ConversionError>
[src]
impl DbValueInto<Vec<u8>> for HdbValue<'static>
[src]
impl DbValueInto<bool> for HdbValue<'static>
[src]
fn try_into(self) -> Result<bool, ConversionError>
[src]
impl DbValueInto<f32> for HdbValue<'static>
[src]
fn try_into(self) -> Result<f32, ConversionError>
[src]
impl DbValueInto<f64> for HdbValue<'static>
[src]
fn try_into(self) -> Result<f64, ConversionError>
[src]
impl DbValueInto<i16> for HdbValue<'static>
[src]
fn try_into(self) -> Result<i16, ConversionError>
[src]
impl DbValueInto<i32> for HdbValue<'static>
[src]
fn try_into(self) -> Result<i32, ConversionError>
[src]
impl DbValueInto<i64> for HdbValue<'static>
[src]
fn try_into(self) -> Result<i64, ConversionError>
[src]
impl DbValueInto<i8> for HdbValue<'static>
[src]
fn try_into(self) -> Result<i8, ConversionError>
[src]
impl DbValueInto<u16> for HdbValue<'static>
[src]
fn try_into(self) -> Result<u16, ConversionError>
[src]
impl DbValueInto<u32> for HdbValue<'static>
[src]
fn try_into(self) -> Result<u32, ConversionError>
[src]
impl DbValueInto<u64> for HdbValue<'static>
[src]
fn try_into(self) -> Result<u64, ConversionError>
[src]
impl DbValueInto<u8> for HdbValue<'static>
[src]
fn try_into(self) -> Result<u8, ConversionError>
[src]
impl<'a> Debug for HdbValue<'a>
[src]
impl<'a> Display for HdbValue<'a>
[src]
impl<'a, '_> PartialEq<&'_ str> for HdbValue<'a>
[src]
impl<'a> PartialEq<i32> for HdbValue<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for HdbValue<'a>
impl<'a> Send for HdbValue<'a>
impl<'a> Sync for HdbValue<'a>
impl<'a> Unpin for HdbValue<'a>
impl<'a> UnwindSafe for HdbValue<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,