Skip to main content

SqlStatement

Enum SqlStatement 

Source
pub enum SqlStatement<P = u32, S = u32> {
    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,
    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

Fields

§inputs: Vec<HostPlace<P>>
§into: Vec<HostPlace<P>>
§

Change

Fields

§delete: bool
§inputs: Vec<HostPlace<P>>
§current_of: Option<S>
§

Open

Fields

§cursor: S
§inputs: Vec<HostPlace<P>>
§

Fetch

Fields

§cursor: S
§into: Vec<HostPlace<P>>
§

Close

Fields

§cursor: S
§

Commit

§

Rollback

§

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.

Fields

§what: S
§location: Vec<HostPlace<P>>

Trait Implementations§

Source§

impl<P, S> Clone for SqlStatement<P, S>
where P: Clone, S: Clone,

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl<P, S> Debug for SqlStatement<P, S>
where P: Debug, S: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Decode for SqlStatement

Source§

impl Encode for SqlStatement

Source§

fn encode(&self, w: &mut Writer)

Source§

impl<P, S> Eq for SqlStatement<P, S>
where P: Eq, S: Eq,

Source§

impl<P, S> PartialEq for SqlStatement<P, S>
where P: PartialEq, S: PartialEq,

Source§

fn eq(&self, other: &SqlStatement<P, S>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<P, S> StructuralPartialEq for SqlStatement<P, S>
where P: PartialEq, S: PartialEq,

Auto Trait Implementations§

§

impl<P, S> Freeze for SqlStatement<P, S>
where Vec<HostPlace<P>>: Freeze, Option<S>: Freeze, S: Freeze,

§

impl<P, S> RefUnwindSafe for SqlStatement<P, S>

§

impl<P, S> Send for SqlStatement<P, S>
where Vec<HostPlace<P>>: Send, Option<S>: Send, S: Send,

§

impl<P, S> Sync for SqlStatement<P, S>
where Vec<HostPlace<P>>: Sync, Option<S>: Sync, S: Sync,

§

impl<P, S> Unpin for SqlStatement<P, S>
where Vec<HostPlace<P>>: Unpin, Option<S>: Unpin, S: Unpin,

§

impl<P, S> UnsafeUnpin for SqlStatement<P, S>

§

impl<P, S> UnwindSafe for SqlStatement<P, S>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.