//! Main entry point for IR to SQL translation.
//!
//! This module provides the top-level API for translating Hamelin IR to SQL.
use TranslationErrors;
use Statement;
use IRStatement;
use crateCommandTranslator;
use cratetranslate_statement;
use crateTranslationRegistry;
/// Translate an IR statement to SQL using a dialect-specific translator.
///
/// This is the primary entry point for IR-to-SQL translation. It uses
/// the default `TranslationRegistry` which includes all built-in function
/// translations.
///
/// # Example
///
/// ```ignore
/// use hamelin_trino::TrinoCommandTranslator;
///
/// let ir = lower(typed_statement)?;
/// let sql_statement = translate(&ir, &TrinoCommandTranslator)?;
/// let sql_string = sql_statement.to_string();
/// ```