Enum oracle::OracleType [] [src]

pub enum OracleType {
    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,
    Int64,
    UInt64,
}

Oracle data type

Variants

VARCHAR2(size)

NVARCHAR2(size)

CHAR(size)

NCHAR(size)

ROWID

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(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(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.

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.

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.

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

LONG

LONG RAW

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

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

Trait Implementations

impl Debug for OracleType
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for OracleType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for OracleType
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Display for OracleType
[src]

[src]

Formats the value using the given formatter. Read more

impl ToSql for OracleType
[src]

[src]

[src]

Auto Trait Implementations

impl !Send for OracleType

impl !Sync for OracleType