yamlbase 0.7.2

A lightweight SQL server that serves YAML-defined tables over standard SQL protocols
Documentation
#![allow(clippy::uninlined_format_args)]

use clap::Parser;
use tracing::info;
use yamlbase::{Config, Server};

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    // Parse command line arguments
    let config = Config::parse();

    // Initialize logging
    config.init_logging()?;

    info!("Starting YamlBase v{}", env!("CARGO_PKG_VERSION"));
    info!("Loading database from: {}", config.file.display());

    // Create and run server
    let server = Server::new(config).await?;
    server.run().await?;

    Ok(())
}