Skip to main content

reifydb_engine/vm/
mod.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright (c) 2026 ReifyDB
3
4//! Virtual machine that executes the instruction stream emitted by the planner and owns the per-request
5//! lifecycle. The dispatch table here is the single place that decides what an opcode does; planner output
6//! never reaches storage without being interpreted through it.
7
8use reifydb_value::params::Params;
9
10#[derive(Debug)]
11pub struct Admin<'a> {
12	pub rql: &'a str,
13	pub params: Params,
14}
15
16#[derive(Debug)]
17pub struct Command<'a> {
18	pub rql: &'a str,
19	pub params: Params,
20}
21
22#[derive(Debug)]
23pub struct Query<'a> {
24	pub rql: &'a str,
25	pub params: Params,
26}
27
28#[derive(Debug)]
29pub struct Subscription<'a> {
30	pub rql: &'a str,
31	pub params: Params,
32}
33
34#[derive(Debug)]
35pub struct Test<'a> {
36	pub rql: &'a str,
37	pub params: Params,
38}
39
40pub(crate) mod exec;
41pub mod executor;
42pub mod flow_lineage;
43pub mod instruction;
44pub mod services;
45pub mod stack;
46#[allow(clippy::module_inception)]
47pub mod vm;
48pub mod volcano;