[−][src]Enum oracle::sql_type::OracleType
Oracle data type
Variants
Varchar2(u32)
VARCHAR2(size)
NVarchar2(u32)
NVARCHAR2(size)
Char(u32)
CHAR(size)
NChar(u32)
NCHAR(size)
ROWID
Raw(u32)
RAW(size)
BINARY_FLOAT
IEEE 754 single-precision (32-bit) floating-point number
BINARY_DOUBLE
IEEE 754 double-precision (64-bit) floating-point number
NUMBER(precision, scale)
precision
is between 0 and 38. When it is 0, its actual precision is
38 and (precision, scale)
is omitted in text represention.
scale
is between -87 and 127. When it is 0, this is represented
as NUMBER(precision)
in text.
Float(u8)
FLOAT(precision)
This is a subtype of NUMBER. The internal format is same with NUMBER, which means that numbers are stored as decimal not as binary. Use BINARY_DOUBLE or BINARY_FLOAT to store f64 or f32 rust types.
precision
is between 0 and 126. When it is 126, (precision)
is
omitted in text represention.
DATE data type
Timestamp(u8)
TIMESTAMP(fsprec)
Timestamp data type without time zone.
fsprec
is fractional seconds precision between 0 and 9. When it is
6, (fsprec)
is omitted in text represention.
TimestampTZ(u8)
TIMESTAMP(fsprec) WITH TIME ZONE
Timestamp data type with time zone.
fsprec
is fractional seconds precision between 0 and 9. When it is
6, (fsprec)
is omitted in text represention.
TimestampLTZ(u8)
TIMESTAMP(fsprec) WITH LOCAL TIME ZONE
Timestamp data type in local session time zone. Clients in different session time zones retrieves different timestamp.
fsprec
is fractional seconds precision between 0 and 9. When it is
6, (fsprec)
is omitted in text represention.
INTERVAL DAY(lfprec) TO SECOND(fsprec)
lfprec
is leading field precision between 0 and 9. When it is 2,
(lfprec)
is omitted in text represention.
fsprec
is fractional seconds precision between 0 and 9. When it is
6, (fsprec)
is omitted in text represention.
IntervalYM(u8)
INTERVAL YEAR(lfprec) TO MONTH
lfprec
is leading field precision between 0 and 9. When it is 2,
(lfprec)
is omitted in text represention.
CLOB
NCLOB
BLOB
BFILE
REF CURSOR (not supported)
BOOLEAN (not supported)
Object(ObjectType)
Object
LONG
LONG RAW
Integer type in Oracle object type attributes. This will be renamed to Integer in future.
Not an Oracle type, used only internally to bind/define values as u64
Trait Implementations
impl ToSql for OracleType
[src]
fn oratype(&self, _conn: &Connection) -> Result<OracleType>
[src]
fn to_sql(&self, val: &mut SqlValue) -> Result<()>
[src]
impl Clone for OracleType
[src]
fn clone(&self) -> OracleType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<OracleType> for OracleType
[src]
fn eq(&self, other: &OracleType) -> bool
[src]
fn ne(&self, other: &OracleType) -> bool
[src]
impl Debug for OracleType
[src]
impl Display for OracleType
[src]
Auto Trait Implementations
impl Send for OracleType
impl Unpin for OracleType
impl Sync for OracleType
impl UnwindSafe for OracleType
impl RefUnwindSafe for OracleType
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,