pub struct Schema(pub Vec<Item>);Tuple Fields§
§0: Vec<Item>Implementations§
Source§impl Schema
impl Schema
pub fn process( &mut self, options: &SchemaProcessOptions, rn: &mut RenameMap, report: &mut Report, )
pub fn material_items(&self) -> Vec<SchemaItem<'_>>
pub fn items(&self) -> Vec<SchemaItem<'_>>
pub fn schema_ty(&self, name: TypeIdent) -> SchemaType<'_>
pub fn native_type( &self, name: &TypeIdent, rn: &RenameMap, report: &mut Report, ) -> DbNativeType
pub fn tables(&self) -> impl Iterator<Item = &Table>
pub fn views(&self) -> impl Iterator<Item = &View>
pub fn enums(&self) -> impl Iterator<Item = &Enum>
pub fn scalars(&self) -> impl Iterator<Item = &Scalar>
pub fn composites(&self) -> impl Iterator<Item = &Composite>
pub fn schema_table(&self, name: &TableIdent) -> Option<SchemaTable<'_>>
pub fn schema_table_or_view( &self, name: &TableIdent, ) -> Option<SchemaTableOrView<'_>>
pub fn schema_scalar(&self, scalar: TypeIdent) -> SchemaScalar<'_>
pub fn db_tables(&self, rn: &RenameMap) -> Vec<DbTable> ⓘ
pub fn db_enums(&self, rn: &RenameMap) -> Vec<DbType> ⓘ
pub fn sql<'a>(&'a self, sql: &'a Sql) -> SchemaSql<'_>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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