pub struct ForeignSchemaContext<'a> {
pub types: &'a dyn FunctionTypeResolver,
pub schema: &'a dyn SchemaExpressionCatalog,
pub bindings: &'a dyn InferenceBindingScope,
pub references: &'a dyn SchemaReferenceCatalog,
pub sequences: &'a dyn StoredSequenceNames,
pub allocate_identity: fn(&str) -> ConstraintMetadataResult<[u8; 16]>,
}Fields§
§types: &'a dyn FunctionTypeResolver§schema: &'a dyn SchemaExpressionCatalog§bindings: &'a dyn InferenceBindingScope§references: &'a dyn SchemaReferenceCatalog§sequences: &'a dyn StoredSequenceNames§allocate_identity: fn(&str) -> ConstraintMetadataResult<[u8; 16]>Implementations§
Source§impl ForeignSchemaContext<'_>
impl ForeignSchemaContext<'_>
pub fn prepare_foreign_table_schema( &self, table_name: &str, columns: &mut [ColumnDef], checks: &mut Vec<TableCheck>, ) -> Result<(), SQLError>
pub fn prepare_stored_foreign_table_schema( &self, table_name: &str, columns: &mut [ColumnDef], checks: &mut Vec<TableCheck>, ) -> Result<(), SQLError>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ForeignSchemaContext<'a>
impl<'a> !Send for ForeignSchemaContext<'a>
impl<'a> !Sync for ForeignSchemaContext<'a>
impl<'a> !UnwindSafe for ForeignSchemaContext<'a>
impl<'a> Freeze for ForeignSchemaContext<'a>
impl<'a> Unpin for ForeignSchemaContext<'a>
impl<'a> UnsafeUnpin for ForeignSchemaContext<'a>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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