pub enum Statement {
Show 13 variants
Query {
text: String,
inputs: Vec<HostVar>,
into: Vec<HostVar>,
},
Change {
kind: ChangeKind,
text: String,
inputs: Vec<HostVar>,
current_of: Option<String>,
},
DeclareCursor(Cursor),
DeclareUnsupported {
name: String,
what: String,
},
Open {
cursor: String,
declared: Option<Cursor>,
},
Fetch {
cursor: String,
into: Vec<HostVar>,
},
Close {
cursor: String,
},
Commit,
Rollback,
Whenever {
condition: Condition,
action: Action,
},
Declaration,
Unsupported(String),
Malformed(String),
}Variants§
Query
SELECT … INTO, VALUES … INTO, and SET :host-variable = expression.
Change
INSERT, UPDATE and DELETE; current_of names the cursor of a positioned UPDATE or DELETE.
DeclareCursor(Cursor)
DeclareUnsupported
A cursor ironwork does not run, such as one for a prepared statement, and what it is.
Open
declared is the cursor’s DECLARE, which Cursors::resolve fills.
Fetch
Close
Commit
Rollback
Whenever
Declaration
INCLUDE, DECLARE SECTION, DECLARE TABLE and DECLARE STATEMENT, which declare and do nothing.
Unsupported(String)
A statement ironwork does not run, named by what it is.
Malformed(String)
A statement the precompiler refuses, with the reason: it does not read as its verb requires, or it is not Db2 for z/OS.
Implementations§
Trait Implementations§
impl Eq for Statement
impl StructuralPartialEq for Statement
Auto Trait Implementations§
impl Freeze for Statement
impl RefUnwindSafe for Statement
impl Send for Statement
impl Sync for Statement
impl Unpin for Statement
impl UnsafeUnpin for Statement
impl UnwindSafe for Statement
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