pub struct PlannedSchema { /* private fields */ }Expand description
Planned Arrow/MSSQL table schema for one SQL Server profile.
Implementations§
Source§impl PlannedSchema
impl PlannedSchema
Sourcepub fn new(
profile: MssqlProfile,
plan_options: PlanOptions,
mappings: Vec<SchemaMapping>,
) -> Self
pub fn new( profile: MssqlProfile, plan_options: PlanOptions, mappings: Vec<SchemaMapping>, ) -> Self
Creates a planned schema.
Sourcepub const fn profile(&self) -> MssqlProfile
pub const fn profile(&self) -> MssqlProfile
Returns the SQL Server profile used for planning.
Sourcepub const fn plan_options(&self) -> PlanOptions
pub const fn plan_options(&self) -> PlanOptions
Returns the conversion policies used for planning.
Sourcepub fn mappings(&self) -> &[SchemaMapping]
pub fn mappings(&self) -> &[SchemaMapping]
Returns planned column mappings.
Sourcepub fn into_mappings(self) -> Vec<SchemaMapping>
pub fn into_mappings(self) -> Vec<SchemaMapping>
Consumes the planned schema into its mappings.
Trait Implementations§
Source§impl AsRef<[SchemaMapping]> for PlannedSchema
impl AsRef<[SchemaMapping]> for PlannedSchema
Source§fn as_ref(&self) -> &[SchemaMapping]
fn as_ref(&self) -> &[SchemaMapping]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for PlannedSchema
impl Clone for PlannedSchema
Source§fn clone(&self) -> PlannedSchema
fn clone(&self) -> PlannedSchema
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 PlannedSchema
impl Debug for PlannedSchema
impl Eq for PlannedSchema
Source§impl PartialEq for PlannedSchema
impl PartialEq for PlannedSchema
impl StructuralPartialEq for PlannedSchema
Auto Trait Implementations§
impl Freeze for PlannedSchema
impl RefUnwindSafe for PlannedSchema
impl Send for PlannedSchema
impl Sync for PlannedSchema
impl Unpin for PlannedSchema
impl UnsafeUnpin for PlannedSchema
impl UnwindSafe for PlannedSchema
Blanket Implementations§
impl<T> Allocation for T
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