Skip to main content

SqlHost

Trait SqlHost 

Source
pub trait SqlHost<'w, P: Copy, S>: Host<P> {
    // Required methods
    fn session(&mut self) -> Option<&mut Session<'w>>;
    fn in_task(&self) -> bool;
    fn program_id(&self) -> String;
    fn text(&self, text: &S) -> String;
    fn place_pos(&self, place: P) -> Pos;
    fn untyped(&mut self, abend: AbendId) -> Abend;
}
Expand description

What a statement asks of the executor running it beyond Host.

Required Methods§

Source

fn session(&mut self) -> Option<&mut Session<'w>>

The run unit’s database session, when one is attached.

Source

fn in_task(&self) -> bool

A CICS task, whose unit of work SYNCPOINT ends rather than EXEC SQL.

Source

fn program_id(&self) -> String

Source

fn text(&self, text: &S) -> String

Source

fn place_pos(&self, place: P) -> Pos

Where a host variable is written, which a program check reading it names.

Source

fn untyped(&mut self, abend: AbendId) -> Abend

The abend a host variable with no SQL type gives when its statement reaches it.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§