oak-sql 0.0.11

SQL database query language parser with support for standard SQL syntax and database operations.
Documentation
#![doc = include_str!("readme.md")]
use crate::language::SqlLanguage;

/// A formatter for SQL source files.
pub struct SqlFormatter<'config> {
    config: &'config SqlLanguage,
}

impl<'config> SqlFormatter<'config> {
    /// Creates a new `SqlFormatter` with the given language configuration.
    pub fn new(config: &'config SqlLanguage) -> Self {
        Self { config }
    }

    /// Formats a SQL source tree into a string.
    pub fn format(&self, _node: &oak_core::tree::RedNode<SqlLanguage>) -> String {
        // TODO: Implement SQL formatting
        String::new()
    }
}