Struct otter_sql::vm::VirtualMachine
source ยท 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.