reifydb-rql 0.4.12

ReifyDB Query Language (RQL) parser and AST
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2025 ReifyDB

use crate::{
	Result,
	ast::ast::AstCreateTest,
	plan::logical::{Compiler, CreateTestNode, LogicalPlan},
};

impl<'bump> Compiler<'bump> {
	pub(crate) fn compile_create_test(&self, ast: AstCreateTest<'bump>) -> Result<LogicalPlan<'bump>> {
		Ok(LogicalPlan::CreateTest(CreateTestNode {
			test: ast.name,
			cases: ast.cases,
			body_source: ast.body_source,
		}))
	}
}