pub struct SchemaTree {
pub databases: Vec<Database>,
}Expand description
A complete schema snapshot returned by a connector.
Fields§
§databases: Vec<Database>Implementations§
Source§impl SchemaTree
impl SchemaTree
Sourcepub fn find_table(
&self,
catalog: &str,
schema: &str,
table: &str,
) -> Option<&Table>
pub fn find_table( &self, catalog: &str, schema: &str, table: &str, ) -> Option<&Table>
Find a table by its three-part name, case-insensitive on each part —
the convention the schema fingerprint and the validity reconciler use,
so a name that kept its casing but changed type still resolves here.
Returns None when any part is absent. Pure lookup over the tree; the
caller decides what absence means (refuse, mark stale, fall back).
Trait Implementations§
Source§impl Clone for SchemaTree
impl Clone for SchemaTree
Source§fn clone(&self) -> SchemaTree
fn clone(&self) -> SchemaTree
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemaTree
impl Debug for SchemaTree
Source§impl Default for SchemaTree
impl Default for SchemaTree
Source§fn default() -> SchemaTree
fn default() -> SchemaTree
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SchemaTree
impl<'de> Deserialize<'de> for SchemaTree
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SchemaTree
impl PartialEq for SchemaTree
Source§impl Serialize for SchemaTree
impl Serialize for SchemaTree
impl StructuralPartialEq for SchemaTree
Auto Trait Implementations§
impl Freeze for SchemaTree
impl RefUnwindSafe for SchemaTree
impl Send for SchemaTree
impl Sync for SchemaTree
impl Unpin for SchemaTree
impl UnsafeUnpin for SchemaTree
impl UnwindSafe for SchemaTree
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