pub struct Schema { /* private fields */ }Expand description
Complete provider-neutral schema intent.
Implementations§
Source§impl Schema
impl Schema
Sourcepub fn new(
name: SchemaName,
tables: impl IntoIterator<Item = Table>,
views: impl IntoIterator<Item = View>,
domains: &DomainCatalog,
validator: &impl ValueShapeValidator,
) -> Result<Self, SchemaError>
pub fn new( name: SchemaName, tables: impl IntoIterator<Item = Table>, views: impl IntoIterator<Item = View>, domains: &DomainCatalog, validator: &impl ValueShapeValidator, ) -> Result<Self, SchemaError>
Validates a complete schema graph.
Sourcepub fn name(&self) -> &SchemaName
pub fn name(&self) -> &SchemaName
Returns its name.
Sourcepub fn id(&self) -> Result<RelationId, Error>
pub fn id(&self) -> Result<RelationId, Error>
Returns its canonical content identity.
Trait Implementations§
impl Eq for Schema
impl StructuralPartialEq for Schema
Source§impl ToRelationDatum for Schema
impl ToRelationDatum for Schema
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnsafeUnpin for Schema
impl UnwindSafe for Schema
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