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::AstCreateSink,
	plan::logical::{Compiler, CreateSinkNode, LogicalPlan},
};

impl<'bump> Compiler<'bump> {
	pub(crate) fn compile_create_sink(&self, ast: AstCreateSink<'bump>) -> Result<LogicalPlan<'bump>> {
		Ok(LogicalPlan::CreateSink(CreateSinkNode {
			name: ast.name,
			source: ast.source,
			connector: ast.connector,
			config: ast.config,
		}))
	}
}