pub trait SqlHost<'w, P, S>: Host<P>where
P: Copy,{
// 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: u32) -> Abend;
fn sink(&mut self, kind: &'static str, pos: Pos, operand: &str);
// Provided method
fn locate_first(&mut self, place: P) -> Result<Loc, Abend> { ... }
}Expand description
What a statement asks of the executor running it beyond Host.
Required Methods§
Sourcefn session(&mut self) -> Option<&mut Session<'w>>
fn session(&mut self) -> Option<&mut Session<'w>>
The run unit’s database session, when one is attached.
fn program_id(&self) -> String
fn text(&self, text: &S) -> String
Sourcefn place_pos(&self, place: P) -> Pos
fn place_pos(&self, place: P) -> Pos
Where a host variable is written, which a program check reading it names.
Provided Methods§
Sourcefn locate_first(&mut self, place: P) -> Result<Loc, Abend>
fn locate_first(&mut self, place: P) -> Result<Loc, Abend>
A table named without subscripts, an indicator array or a multiple-row statement’s host-variable array, at its first element; an executor whose place for one is not that element locates it here.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".