pub struct PhysicalSchema { /* private fields */ }Expand description
Immutable normalized evidence observed from a live provider catalog.
Implementations§
Source§impl PhysicalSchema
impl PhysicalSchema
Sourcepub fn normalize(
provider: ProviderName,
schema: SchemaName,
revision: RevisionName,
tables: Vec<PhysicalTable>,
) -> Result<Self, &'static str>
pub fn normalize( provider: ProviderName, schema: SchemaName, revision: RevisionName, tables: Vec<PhysicalTable>, ) -> Result<Self, &'static str>
Normalizes an observed catalog. Tables/indexes are unordered; columns are sorted by provider ordinal.
Sourcepub fn tables(&self) -> &[PhysicalTable]
pub fn tables(&self) -> &[PhysicalTable]
Returns normalized tables.
Sourcepub fn id(&self) -> Result<RelationId, Error>
pub fn id(&self) -> Result<RelationId, Error>
Returns the distinct physical identity.
Trait Implementations§
Source§impl Clone for PhysicalSchema
impl Clone for PhysicalSchema
Source§fn clone(&self) -> PhysicalSchema
fn clone(&self) -> PhysicalSchema
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 PhysicalSchema
impl Debug for PhysicalSchema
impl Eq for PhysicalSchema
Source§impl PartialEq for PhysicalSchema
impl PartialEq for PhysicalSchema
impl StructuralPartialEq for PhysicalSchema
Source§impl ToRelationDatum for PhysicalSchema
impl ToRelationDatum for PhysicalSchema
Auto Trait Implementations§
impl Freeze for PhysicalSchema
impl RefUnwindSafe for PhysicalSchema
impl Send for PhysicalSchema
impl Sync for PhysicalSchema
impl Unpin for PhysicalSchema
impl UnsafeUnpin for PhysicalSchema
impl UnwindSafe for PhysicalSchema
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