[][src]Enum hdbconnect::HdbValue

pub enum HdbValue {
    NOTHING,
    NULL,
    TINYINT(u8),
    SMALLINT(i16),
    INT(i32),
    BIGINT(i64),
    DECIMAL(BigDecimal),
    REAL(f32),
    DOUBLE(f64),
    BINARY(Vec<u8>),
    CLOB(CLob),
    NCLOB(NCLob),
    BLOB(BLob),
    BOOLEAN(bool),
    STRING(String),
    LONGDATE(LongDate),
    SECONDDATE(SecondDate),
    DAYDATE(DayDate),
    SECONDTIME(SecondTime),
    GEOMETRY(Vec<u8>),
    POINT(Vec<u8>),
}

Enum for all supported database value types.

Variants

NOTHING

Is swapped in where a real value (any of the others) is swapped out.

NULL

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.

BINARY(Vec<u8>)

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.

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.

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.

GEOMETRY(Vec<u8>)

Spatial type GEOMETRY.

POINT(Vec<u8>)

Spatial type POINT.

Methods

impl HdbValue[src]

pub fn try_into<'x, T: Deserialize<'x>>(self) -> HdbResult<T>[src]

Deserialize into a rust type

pub fn try_into_blob(self) -> HdbResult<BLob>[src]

Convert into hdbconnect::BLob

pub fn try_into_clob(self) -> HdbResult<CLob>[src]

Convert into hdbconnect::CLob

pub fn try_into_nclob(self) -> HdbResult<NCLob>[src]

Convert into hdbconnect::NCLob

pub fn is_null(&self) -> bool[src]

Returns true if the value is a NULL value.

Trait Implementations

impl Clone for HdbValue[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<i32> for HdbValue[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl<'_> PartialEq<&'_ str> for HdbValue[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Debug for HdbValue[src]

impl Display for HdbValue[src]

impl DbValue for HdbValue[src]

fn into_typed<'de, T>(self) -> Result<T, DeserializationError> where
    T: Deserialize<'de>, 
[src]

Converts the DbValue into a plain rust value.

impl DbValueInto<bool> for HdbValue[src]

impl DbValueInto<u8> for HdbValue[src]

impl DbValueInto<u16> for HdbValue[src]

impl DbValueInto<u32> for HdbValue[src]

impl DbValueInto<u64> for HdbValue[src]

impl DbValueInto<i8> for HdbValue[src]

impl DbValueInto<i16> for HdbValue[src]

impl DbValueInto<i32> for HdbValue[src]

impl DbValueInto<i64> for HdbValue[src]

impl DbValueInto<f32> for HdbValue[src]

impl DbValueInto<f64> for HdbValue[src]

impl DbValueInto<String> for HdbValue[src]

impl DbValueInto<NaiveDateTime> for HdbValue[src]

impl DbValueInto<Vec<u8>> for HdbValue[src]

Auto Trait Implementations

impl Send for HdbValue

impl !Sync for HdbValue

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self