pub struct TableDescription { /* private fields */ }Expand description
An owned duckdb_table_description with indexed column-name/default access.
Implementations§
Source§impl TableDescription
impl TableDescription
Sourcepub fn error(&self) -> Option<String>
pub fn error(&self) -> Option<String>
The description’s error message, if any.
(duckdb_table_description_error.) The returned string is owned by the
description and freed on destroy; it is copied out here and never freed.
Sourcepub fn column_name(&self, index: u64) -> Option<String>
pub fn column_name(&self, index: u64) -> Option<String>
The name of the column at index, or None if DuckDB returns no name.
index must be within the table’s column count (obtained from a trusted
bounds source — see the module docs); the returned name is owned.
Trait Implementations§
Source§impl Debug for TableDescription
impl Debug for TableDescription
Source§impl Drop for TableDescription
impl Drop for TableDescription
Auto Trait Implementations§
impl !Send for TableDescription
impl !Sync for TableDescription
impl Freeze for TableDescription
impl RefUnwindSafe for TableDescription
impl Unpin for TableDescription
impl UnsafeUnpin for TableDescription
impl UnwindSafe for TableDescription
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