Struct oracle::ColumnInfo
[−]
[src]
pub struct ColumnInfo { /* fields omitted */ }
Column information in a select statement
let conn = oracle::Connection::new("scott", "tiger", "").unwrap(); let mut stmt = conn.execute("select * from emp", &()).unwrap(); for info in stmt.column_info() { println!("{:-30} {:-8} {}", info.name(), if info.nullable() {""} else {"NOT NULL"}, info.oracle_type()); }
Methods
impl ColumnInfo
[src]
fn name(&self) -> &String
[src]
Gets column name
fn oracle_type(&self) -> &OracleType
[src]
Gets Oracle type
fn nullable(&self) -> bool
[src]
Gets whether the column may be NULL.
False when the column is defined as NOT NULL
.
Trait Implementations
impl Clone for ColumnInfo
[src]
fn clone(&self) -> ColumnInfo
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more