pub enum SqlStatement<P = u32, S = u32> {
Show 22 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>>,
},
Describe {
name: S,
descriptor: P,
names: SqlNames,
},
PrepareInto {
name: S,
source: Vec<HostPlace<P>>,
descriptor: P,
names: SqlNames,
},
ExecuteDescriptor {
name: S,
descriptor: P,
},
OpenDescriptor {
cursor: S,
statement: S,
descriptor: P,
},
FetchDescriptor {
cursor: S,
descriptor: P,
},
FetchRowset {
cursor: S,
rows: RowCount<P>,
into: Vec<HostArray<P>>,
enabled: bool,
},
InsertRows {
inputs: Vec<HostArray<P>>,
rows: RowCount<P>,
atomic: bool,
},
Call {
procedure: S,
args: 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.
Describe
DESCRIBE [OUTPUT] of a prepared statement into the SQLDA at descriptor.
PrepareInto
PREPARE … INTO: PREPARE, then DESCRIBE of the statement it made.
ExecuteDescriptor
OpenDescriptor
FetchDescriptor
FetchRowset
FETCH NEXT ROWSET into host-variable arrays; enabled is the cursor’s WITH ROWSET
POSITIONING.
InsertRows
INSERT … FOR n ROWS, the entry’s text the INSERT of one row. ATOMIC undoes every row when one fails.
Call
CALL of procedure: each host-variable argument is sent, and assigned what the procedure
returns for it.
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>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more