pub enum SqlStatement<P = u32, S = u32> {
Show 14 variants
Query {
inputs: Vec<HostPlace<P>>,
into: Vec<HostPlace<P>>,
},
Change {
delete: bool,
inputs: Vec<HostPlace<P>>,
current_of: Option<S>,
},
Open {
cursor: S,
inputs: Vec<HostPlace<P>>,
},
Fetch {
cursor: S,
into: Vec<HostPlace<P>>,
},
Close {
cursor: S,
},
Commit,
Rollback,
Prepare {
name: S,
source: Vec<HostPlace<P>>,
},
ExecuteImmediate {
source: Vec<HostPlace<P>>,
},
Execute {
name: S,
inputs: Vec<HostPlace<P>>,
},
OpenPrepared {
cursor: S,
statement: S,
inputs: Vec<HostPlace<P>>,
},
Declaration,
Unsupported(S),
Connect {
what: S,
location: Vec<HostPlace<P>>,
},
}Expand description
The typed statement with its host variables resolved and each OPEN given its DECLARE’s inputs.
Variants§
Query
Change
Open
Fetch
Close
Fields
§
cursor: SCommit
Rollback
Prepare
PREPARE of the statement name from the statement string in source, which must be one
varying-length character or graphic string.
ExecuteImmediate
Execute
EXECUTE of a prepared statement, inputs replacing its parameter markers.
OpenPrepared
OPEN of a cursor declared for the prepared statement statement.
Declaration
WHENEVER, DECLARE CURSOR, INCLUDE and the other declarations: no op.
Unsupported(S)
Abends EXEC, naming it, when reached.
Connect
CONNECT or SET CONNECTION: the host variable naming the location, if any, goes to the input trace, then the statement abends EXEC as an unsupported one does.
Trait Implementations§
Source§impl<P, S> Clone for SqlStatement<P, S>
impl<P, S> Clone for SqlStatement<P, S>
Source§fn clone(&self) -> SqlStatement<P, S>
fn clone(&self) -> SqlStatement<P, S>
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<P, S> Debug for SqlStatement<P, S>
impl<P, S> Debug for SqlStatement<P, S>
Source§impl Decode for SqlStatement
impl Decode for SqlStatement
fn decode(r: &mut Reader<'_>) -> Result<SqlStatement, ModuleError>
impl<P, S> Eq for SqlStatement<P, S>
Source§impl<P, S> PartialEq for SqlStatement<P, S>
impl<P, S> PartialEq for SqlStatement<P, S>
impl<P, S> StructuralPartialEq for SqlStatement<P, S>
Auto Trait Implementations§
impl<P, S> Freeze for SqlStatement<P, S>
impl<P, S> RefUnwindSafe for SqlStatement<P, S>
impl<P, S> Send for SqlStatement<P, S>
impl<P, S> Sync for SqlStatement<P, S>
impl<P, S> Unpin for SqlStatement<P, S>
impl<P, S> UnsafeUnpin for SqlStatement<P, S>
impl<P, S> UnwindSafe for SqlStatement<P, S>
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