pub struct SetPlacementScope { /* private fields */ }Expand description
Decides, until it drops, whether analysis on the current thread places set-returning calls, as parse analysis does for a statement or definition it analyzes for the first time, and restores the enclosing decision when it drops.
Implementations§
Source§impl SetPlacementScope
impl SetPlacementScope
Sourcepub fn stored_definition() -> Self
pub fn stored_definition() -> Self
Analyze or run a stored definition: a view, a SQL-standard routine body or a rule, which PostgreSQL keeps as the tree its parse analysis produced when the definition was created and never analyzes again. Its set-returning calls are not placed again, so a definition stored by an earlier release keeps loading, and evaluating one of them where the executor cannot accept a set reports the executor’s diagnostic.
Sourcepub fn compiled_source() -> Self
pub fn compiled_source() -> Self
Analyze the statements a routine compiles from its source text when it runs, which PostgreSQL analyzes like a new statement even when a stored definition calls the routine.
Trait Implementations§
Source§impl Drop for SetPlacementScope
impl Drop for SetPlacementScope
Auto Trait Implementations§
impl !Send for SetPlacementScope
impl !Sync for SetPlacementScope
impl Freeze for SetPlacementScope
impl RefUnwindSafe for SetPlacementScope
impl Unpin for SetPlacementScope
impl UnsafeUnpin for SetPlacementScope
impl UnwindSafe for SetPlacementScope
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
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