pub enum BindValue {
Show 22 variants
Null,
TypedNull {
ora_type_num: u8,
csfrm: u8,
buffer_size: u32,
},
Output {
ora_type_num: u8,
csfrm: u8,
buffer_size: u32,
},
ReturnOutput {
ora_type_num: u8,
csfrm: u8,
buffer_size: u32,
},
ObjectOutput {
schema: String,
type_name: String,
oid: Vec<u8>,
version: u32,
buffer_size: u32,
is_return: bool,
},
ObjectInput {
schema: String,
type_name: String,
oid: Vec<u8>,
version: u32,
image: Vec<u8>,
buffer_size: u32,
},
Text(String),
Raw(Vec<u8>),
Lob {
ora_type_num: u8,
csfrm: u8,
locator: Vec<u8>,
},
Number(String),
BinaryInteger(String),
BinaryDouble(f64),
BinaryFloat(f64),
Boolean(bool),
IntervalDS {
days: i32,
seconds: i32,
microseconds: i32,
},
IntervalYM {
years: i32,
months: i32,
},
DateTime {
year: i32,
month: u8,
day: u8,
hour: u8,
minute: u8,
second: u8,
},
Timestamp {
ora_type_num: u8,
year: i32,
month: u8,
day: u8,
hour: u8,
minute: u8,
second: u8,
nanosecond: u32,
},
Array {
ora_type_num: u8,
csfrm: u8,
buffer_size: u32,
max_elements: u32,
values: Vec<Option<BindValue>>,
},
Vector(Vector),
Json(Vec<u8>),
Cursor {
cursor_id: u32,
},
}Variants§
Null
TypedNull
Output
ReturnOutput
ObjectOutput
ObjectInput
A DbObject bound as IN (or IN/OUT). The fully packed pickle image is
built by the pyshim (it owns the recursive Python attribute values); the
protocol only frames it (toid/oid/snapshot/version/len/flags + image).
Text(String)
Raw(Vec<u8>)
Lob
Number(String)
BinaryInteger(String)
BinaryDouble(f64)
BinaryFloat(f64)
Boolean(bool)
IntervalDS
IntervalYM
DateTime
Timestamp
Array
Vector(Vector)
Json(Vec<u8>)
Native Oracle JSON bind (DB_TYPE_JSON): the already-encoded OSON image.
The Python-facing layer encodes the value to OSON before binding so the
connection’s long-field-name capability can be applied.
Cursor
Trait Implementations§
impl StructuralPartialEq for BindValue
Auto Trait Implementations§
impl Freeze for BindValue
impl RefUnwindSafe for BindValue
impl Send for BindValue
impl Sync for BindValue
impl Unpin for BindValue
impl UnsafeUnpin for BindValue
impl UnwindSafe for BindValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more