reifydb-rql 0.4.6

ReifyDB Query Language (RQL) parser and AST
Documentation
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2025 ReifyDB

use crate::{
	Result,
	ast::ast::AstCreateSource,
	plan::logical::{Compiler, CreateSourceNode, LogicalPlan},
};

impl<'bump> Compiler<'bump> {
	pub(crate) fn compile_create_source(&self, ast: AstCreateSource<'bump>) -> Result<LogicalPlan<'bump>> {
		Ok(LogicalPlan::CreateSource(CreateSourceNode {
			name: ast.name,
			connector: ast.connector,
			config: ast.config,
			target: ast.target,
		}))
	}
}