pub enum OracleType {
Show 28 variants Varchar2(u32), NVarchar2(u32), Char(u32), NChar(u32), Rowid, Raw(u32), BinaryFloat, BinaryDouble, Number(u8i8), Float(u8), Date, Timestamp(u8), TimestampTZ(u8), TimestampLTZ(u8), IntervalDS(u8u8), IntervalYM(u8), CLOB, NCLOB, BLOB, BFILE, RefCursor, Boolean, Object(ObjectType), Long, LongRaw, Json, Int64, UInt64,
}
Expand description

Oracle data type

Variants§

§

Varchar2(u32)

VARCHAR2(size)

§

NVarchar2(u32)

NVARCHAR2(size)

§

Char(u32)

CHAR(size)

§

NChar(u32)

NCHAR(size)

§

Rowid

ROWID

§

Raw(u32)

RAW(size)

§

BinaryFloat

BINARY_FLOAT

IEEE 754 single-precision (32-bit) floating-point number

§

BinaryDouble

BINARY_DOUBLE

IEEE 754 double-precision (64-bit) floating-point number

§

Number(u8i8)

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

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.

§

IntervalDS(u8u8)

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

CLOB

§

NCLOB

NCLOB

§

BLOB

BLOB

§

BFILE

BFILE

§

RefCursor

REF CURSOR (not supported)

§

Boolean

BOOLEAN (not supported)

§

Object(ObjectType)

Object

§

Long

LONG

§

LongRaw

LONG RAW

§

Json

JSON data type introduced in Oracle 21c

§

Int64

Integer type in Oracle object type attributes. This will be renamed to Integer in future.

§

UInt64

Not an Oracle type, used only internally to bind/define values as u64

Trait Implementations§

source§

impl Clone for OracleType

source§

fn clone(&self) -> OracleType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for OracleType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for OracleType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<OracleType> for OracleType

source§

fn eq(&self, other: &OracleType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ToSql for OracleType

source§

fn oratype(&self, _conn: &Connection) -> Result<OracleType>

source§

fn to_sql(&self, val: &mut SqlValue) -> Result<()>

source§

impl StructuralPartialEq for OracleType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere
    T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere
    T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.