Skip to main content

SqlEntry

Struct SqlEntry 

Source
pub struct SqlEntry<P = u32, S = u32> {
    pub ordinal: u32,
    pub verb: S,
    pub statement: SqlStatement<P, S>,
    pub text: S,
    pub fingerprint: u32,
    pub with_hold: bool,
}
Expand description

One EXEC SQL block, declarative ones included; Program.sql[k − 1] has ordinal k. P and S are the executor’s handles to a data item and to text: the LIR’s ids by default, the walker’s own references in the interpreter.

Fields§

§ordinal: u32§verb: S

The command word the call record and the EXEC messages name.

§statement: SqlStatement<P, S>§text: S

What a Database call receives, ? for each input; empty for a declaration.

§fingerprint: u32§with_hold: bool

Set on the OPEN of a cursor declared WITH HOLD, and on no other entry.

Trait Implementations§

Source§

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

Source§

fn clone(&self) -> SqlEntry<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 SqlEntry<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 SqlEntry

Source§

impl Encode for SqlEntry

Source§

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

Source§

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

Source§

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

Source§

fn eq(&self, other: &SqlEntry<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 SqlEntry<P, S>
where P: PartialEq, S: PartialEq,

Auto Trait Implementations§

§

impl<P, S> Freeze for SqlEntry<P, S>
where S: Freeze, SqlStatement<P, S>: Freeze,

§

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

§

impl<P, S> Send for SqlEntry<P, S>
where S: Send, SqlStatement<P, S>: Send,

§

impl<P, S> Sync for SqlEntry<P, S>
where S: Sync, SqlStatement<P, S>: Sync,

§

impl<P, S> Unpin for SqlEntry<P, S>
where S: Unpin, SqlStatement<P, S>: Unpin,

§

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

§

impl<P, S> UnwindSafe for SqlEntry<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.