pub enum PlPgSqlStatement {
Assignment {
target: ObjectName,
value: Expr,
},
If {
branches: Vec<PlPgSqlIfBranch>,
else_statements: Option<Vec<PlPgSqlStatement>>,
},
Return(Expr),
Sql(Box<Statement>),
GetRowCount {
target: Ident,
},
RaiseException {
format: ValueWithSpan,
arguments: Vec<Expr>,
hint: Option<Expr>,
},
}Expand description
A statement in a bounded PL/pgSQL block.
Variants§
Assignment
Assign an expression to a name or field.
If
Conditional branches.
Fields
§
branches: Vec<PlPgSqlIfBranch>Ordered IF and ELSIF branches.
§
else_statements: Option<Vec<PlPgSqlStatement>>Optional ELSE statements.
Return(Expr)
Return an expression.
Sql(Box<Statement>)
Execute an embedded SQL statement.
GetRowCount
Assign the affected-row count of the preceding SQL statement.
RaiseException
Raise an exception with formatted arguments.
Trait Implementations§
Source§impl Clone for PlPgSqlStatement
impl Clone for PlPgSqlStatement
Source§impl Debug for PlPgSqlStatement
impl Debug for PlPgSqlStatement
Source§impl<'de> Deserialize<'de> for PlPgSqlStatement
impl<'de> Deserialize<'de> for PlPgSqlStatement
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PlPgSqlStatement
impl Display for PlPgSqlStatement
impl Eq for PlPgSqlStatement
Source§impl Hash for PlPgSqlStatement
impl Hash for PlPgSqlStatement
Source§impl Ord for PlPgSqlStatement
impl Ord for PlPgSqlStatement
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PlPgSqlStatement
impl PartialEq for PlPgSqlStatement
Source§impl PartialOrd for PlPgSqlStatement
impl PartialOrd for PlPgSqlStatement
Source§impl Serialize for PlPgSqlStatement
impl Serialize for PlPgSqlStatement
impl StructuralPartialEq for PlPgSqlStatement
Source§impl Visit for PlPgSqlStatement
impl Visit for PlPgSqlStatement
Source§impl VisitMut for PlPgSqlStatement
impl VisitMut for PlPgSqlStatement
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreAuto Trait Implementations§
impl Freeze for PlPgSqlStatement
impl RefUnwindSafe for PlPgSqlStatement
impl Send for PlPgSqlStatement
impl Sync for PlPgSqlStatement
impl Unpin for PlPgSqlStatement
impl UnsafeUnpin for PlPgSqlStatement
impl UnwindSafe for PlPgSqlStatement
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