pub struct InsertPlan {Show 22 fields
pub table: String,
pub target_relation_bound: bool,
pub relations_bound: bool,
pub statement_privilege_subject: Option<RoleReference>,
pub target_privilege_subject: Option<RoleReference>,
pub target_qualifier: String,
pub target_alias: Option<String>,
pub include_descendants: bool,
pub columns: Vec<AssignmentTarget<ScalarExpr>>,
pub overriding: Option<OverridingKind>,
pub ctes: Vec<CtePlan>,
pub rows: Vec<Vec<ScalarExpr>>,
pub source: Option<Box<QueryPlan>>,
pub rule_values_input: Option<RuleValuesInput>,
pub on_conflict: Option<ConflictPlan>,
pub returning: Vec<ProjectionPlan>,
pub returning_aliases: ReturningAliases,
pub subqueries: Vec<QueryPlan>,
pub view_checks: Vec<ViewCheckPlan>,
pub view_rule_relations: Vec<String>,
pub view_rule_insert_plans: Vec<ViewRuleInsertPlan>,
pub view_rule_returning: Option<ViewRuleReturningPlan>,
}Fields§
§table: String§target_relation_bound: bool§relations_bound: boolWhether non-target relation references are stored catalog identities rather than names that must be resolved in the executing session.
statement_privilege_subject: Option<RoleReference>Effective role used for non-target privilege checks in an internally rewritten statement.
target_privilege_subject: Option<RoleReference>Effective role used only for privilege checks on an internally rewritten target relation.
target_qualifier: String§target_alias: Option<String>§include_descendants: bool§columns: Vec<AssignmentTarget<ScalarExpr>>§overriding: Option<OverridingKind>§ctes: Vec<CtePlan>§rows: Vec<Vec<ScalarExpr>>§source: Option<Box<QueryPlan>>§rule_values_input: Option<RuleValuesInput>VALUES provenance and unresolved defaults survive attached rule inputs and automatic view rewrites.
on_conflict: Option<ConflictPlan>§returning: Vec<ProjectionPlan>§returning_aliases: ReturningAliases§subqueries: Vec<QueryPlan>§view_checks: Vec<ViewCheckPlan>§view_rule_relations: Vec<String>§view_rule_insert_plans: Vec<ViewRuleInsertPlan>§view_rule_returning: Option<ViewRuleReturningPlan>Implementations§
Source§impl InsertPlan
impl InsertPlan
Sourcepub fn query_inputs(&self) -> impl Iterator<Item = &QueryPlan>
pub fn query_inputs(&self) -> impl Iterator<Item = &QueryPlan>
Query children evaluated in the command’s WITH scope: the source query and every subqueries entry.
Source§impl InsertPlan
impl InsertPlan
pub fn expressions(&self) -> impl Iterator<Item = &ScalarExpr>
Sourcepub fn conflict_update_expressions(&self) -> impl Iterator<Item = &ScalarExpr>
pub fn conflict_update_expressions(&self) -> impl Iterator<Item = &ScalarExpr>
Expressions that see the additional EXCLUDED relation in ON CONFLICT DO UPDATE.
Source§impl InsertPlan
impl InsertPlan
Sourcepub fn clone_with_control(
&self,
control: &ProductionControl<'_>,
) -> Result<Produced<Self>, SQLError>
pub fn clone_with_control( &self, control: &ProductionControl<'_>, ) -> Result<Produced<Self>, SQLError>
Capture a retained INSERT executable before scheduling its source, admitting each private destination without evaluating expressions.
Source§impl InsertPlan
impl InsertPlan
pub fn copy_for_rewrite( &self, control: &ProductionControl<'_>, ) -> Result<MutableCommandPlan, SQLError>
Source§impl InsertPlan
impl InsertPlan
Sourcepub fn copy_rule_layer_for_rewrite(
&self,
layer: Option<&ViewRuleInsertPlan>,
rows: bool,
control: &ProductionControl<'_>,
) -> Result<MutableCommandPlan, SQLError>
pub fn copy_rule_layer_for_rewrite( &self, layer: Option<&ViewRuleInsertPlan>, rows: bool, control: &ProductionControl<'_>, ) -> Result<MutableCommandPlan, SQLError>
Copy one rule relation without a source or nested view schedule. The first VALUES layer alone retains rows; later layers receive an independently owned input query.
Trait Implementations§
Source§impl Clone for InsertPlan
impl Clone for InsertPlan
Source§impl Debug for InsertPlan
impl Debug for InsertPlan
Source§impl<'de> Deserialize<'de> for InsertPlan
impl<'de> Deserialize<'de> for InsertPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl ObserveAllocations for InsertPlan
impl ObserveAllocations for InsertPlan
fn observe_allocations<'a>( &'a self, observer: &mut AllocationObserver<'a, '_>, ) -> Result<(), ValueRetentionError>
Auto Trait Implementations§
impl !RefUnwindSafe for InsertPlan
impl !UnwindSafe for InsertPlan
impl Freeze for InsertPlan
impl Send for InsertPlan
impl Sync for InsertPlan
impl Unpin for InsertPlan
impl UnsafeUnpin for InsertPlan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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