pub struct VirtualMachine { /* private fields */ }
Expand description
Executor of an SQL query.
Implementations§
Source§impl VirtualMachine
impl VirtualMachine
pub fn new(name: BoundedString) -> Self
Sourcepub fn execute(&mut self, code: &str) -> Result<Option<Table>, ExecutionError>
pub fn execute(&mut self, code: &str) -> Result<Option<Table>, ExecutionError>
Executes the given SQL.
Sourcepub fn execute_ic(
&mut self,
ic: &IntermediateCode,
) -> Result<Option<Table>, RuntimeError>
pub fn execute_ic( &mut self, ic: &IntermediateCode, ) -> Result<Option<Table>, RuntimeError>
Executes the given intermediate code.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VirtualMachine
impl RefUnwindSafe for VirtualMachine
impl Send for VirtualMachine
impl Sync for VirtualMachine
impl Unpin for VirtualMachine
impl UnwindSafe for VirtualMachine
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