pub struct Executor(/* private fields */);Expand description
Executor is the orchestration layer for RQL statement execution.
Implementations§
Source§impl Executor
impl Executor
pub fn new( catalog: Catalog, clock: Clock, functions: Functions, procedures: Procedures, transforms: Transforms, flow_operator_store: FlowOperatorStore, stats_reader: MetricReader<SingleStore>, ioc: IocContainer, ) -> Self
Sourcepub fn from_services(services: Arc<Services>) -> Self
pub fn from_services(services: Arc<Services>) -> Self
Construct an Executor from an existing Arc<Services>.
pub fn testing() -> Self
Source§impl Executor
impl Executor
Sourcepub fn rql(
&self,
tx: &mut Transaction<'_>,
identity: IdentityId,
rql: &str,
params: Params,
) -> Result<Vec<Frame>>
pub fn rql( &self, tx: &mut Transaction<'_>, identity: IdentityId, rql: &str, params: Params, ) -> Result<Vec<Frame>>
Execute RQL against an existing open transaction.
This is the universal RQL execution interface: it compiles and runs arbitrary RQL within whatever transaction variant the caller provides.
pub fn admin( &self, txn: &mut AdminTransaction, cmd: Admin<'_>, ) -> Result<Vec<Frame>>
pub fn command( &self, txn: &mut CommandTransaction, cmd: Command<'_>, ) -> Result<Vec<Frame>>
Sourcepub fn call_procedure(
&self,
txn: &mut CommandTransaction,
identity: IdentityId,
name: &str,
params: &Params,
) -> Result<Vec<Frame>>
pub fn call_procedure( &self, txn: &mut CommandTransaction, identity: IdentityId, name: &str, params: &Params, ) -> Result<Vec<Frame>>
Call a procedure by fully-qualified name (e.g., “banking.transfer_funds”).
pub fn query( &self, txn: &mut QueryTransaction, qry: Query<'_>, ) -> Result<Vec<Frame>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Executor
impl !RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl UnsafeUnpin for Executor
impl !UnwindSafe for Executor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more