pub struct ColumnInfo {Show 17 fields
pub name: String,
pub oracle_type: OracleType,
pub data_size: u32,
pub buffer_size: u32,
pub precision: i16,
pub scale: i16,
pub nullable: bool,
pub csfrm: u8,
pub type_schema: Option<String>,
pub type_name: Option<String>,
pub domain_schema: Option<String>,
pub domain_name: Option<String>,
pub is_json: bool,
pub is_oson: bool,
pub vector_dimensions: Option<u32>,
pub vector_format: Option<u8>,
pub element_type: Option<OracleType>,
}Expand description
Metadata for a column in a result set
Fields§
§name: StringColumn name
oracle_type: OracleTypeOracle data type
data_size: u32Data type size
buffer_size: u32Buffer size for fetching
precision: i16Precision (for NUMBER)
scale: i16Scale (for NUMBER)
nullable: boolWhether NULL values are allowed
csfrm: u8Character set form
type_schema: Option<String>Schema name (for object types)
type_name: Option<String>Type name (for object types)
domain_schema: Option<String>Domain schema (23ai+)
domain_name: Option<String>Domain name (23ai+)
is_json: boolIs JSON column
is_oson: boolIs OSON format
vector_dimensions: Option<u32>Vector dimensions (23ai+)
vector_format: Option<u8>Vector format (23ai+)
element_type: Option<OracleType>Element type for collections (VARRAY, Nested Table)
Implementations§
Source§impl ColumnInfo
impl ColumnInfo
Sourcepub fn new(name: impl Into<String>, oracle_type: OracleType) -> Self
pub fn new(name: impl Into<String>, oracle_type: OracleType) -> Self
Create a new column with minimal info
Sourcepub fn is_lob(&self) -> bool
pub fn is_lob(&self) -> bool
Check if this column is a LOB type (CLOB, BLOB, BFILE, JSON, or VECTOR)
Sourcepub fn requires_no_prefetch(&self) -> bool
pub fn requires_no_prefetch(&self) -> bool
Check if this column requires no prefetch (LOB types)
Trait Implementations§
Source§impl Clone for ColumnInfo
impl Clone for ColumnInfo
Source§fn clone(&self) -> ColumnInfo
fn clone(&self) -> ColumnInfo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ColumnInfo
impl RefUnwindSafe for ColumnInfo
impl Send for ColumnInfo
impl Sync for ColumnInfo
impl Unpin for ColumnInfo
impl UnwindSafe for ColumnInfo
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)