pub struct TypeTableHandle { /* private fields */ }Expand description
Handle to a CCDB table, enabling metadata inspection and data fetches.
Implementations§
Source§impl TypeTableHandle
impl TypeTableHandle
Sourcepub fn meta(&self) -> &TypeTableMeta
pub fn meta(&self) -> &TypeTableMeta
Returns the table metadata as loaded from CCDB.
Sourcepub fn full_path(&self) -> String
pub fn full_path(&self) -> String
Returns the absolute path of this table, including directory prefix.
Sourcepub fn columns(&self) -> CCDBResult<Vec<ColumnMeta>>
pub fn columns(&self) -> CCDBResult<Vec<ColumnMeta>>
Loads column metadata for this table.
§Errors
This method will fail if the underlying SQL query fails or any part of the columns table
fails to parse.
Sourcepub fn fetch(&self, ctx: &CCDBContext) -> CCDBResult<BTreeMap<RunNumber, Data>>
pub fn fetch(&self, ctx: &CCDBContext) -> CCDBResult<BTreeMap<RunNumber, Data>>
Fetches data for this table using the provided query context.
§Errors
Returns an error if resolving assignments fails, if any SQL queries fail, or if vault data cannot be decoded for the requested runs.
Trait Implementations§
Source§impl Clone for TypeTableHandle
impl Clone for TypeTableHandle
Source§fn clone(&self) -> TypeTableHandle
fn clone(&self) -> TypeTableHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§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 TypeTableHandle
impl !RefUnwindSafe for TypeTableHandle
impl Send for TypeTableHandle
impl Sync for TypeTableHandle
impl Unpin for TypeTableHandle
impl !UnwindSafe for TypeTableHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more